Skip to content

Commit

Permalink
Fix $open_mode value from constant to string
Browse files Browse the repository at this point in the history
This was a bug in documentation which I fixed. It worked because `r` (if not defined) was assumed to be `'r'` (string) + E_NOTICE.
  • Loading branch information
d3y4n committed Apr 14, 2014
1 parent 5b60120 commit e567290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Symfony/CS/StdinFileInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function isWritable()
return false;
}

public function openFile($open_mode = r, $use_include_path = false, $context = NULL)
public function openFile($open_mode = 'r', $use_include_path = false, $context = NULL)
{
throw new \RuntimeException("Not implemented");
}
Expand Down

0 comments on commit e567290

Please sign in to comment.