Skip to content

Commit

Permalink
bug PHP-CS-Fixer#339 Fix $open_mode value from constant to string (we…
Browse files Browse the repository at this point in the history
…barto)

This PR was merged into the 0.4.x-dev branch.

Discussion
----------

Fix $open_mode value from constant to string

This was a bug in documentation which I fixed. It worked because `r` (if not defined) was assumed to be `'r'` (string) + E_NOTICE.

Commits
-------

e567290 Fix $open_mode value from constant to string
  • Loading branch information
fabpot committed Apr 15, 2014
2 parents 5b60120 + e567290 commit 2f1df1d
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 2f1df1d

Please sign in to comment.