Skip to content

Commit

Permalink
File paths specified using --stdin-path can now point to fake file lo…
Browse files Browse the repository at this point in the history
…cations (request #1488)
  • Loading branch information
gsherwood committed Nov 9, 2017
1 parent 53ba7e2 commit bb66250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ http://pear.php.net/dtd/package-2.0.xsd">
-- Thanks to Juliette Reinders Folmer for the patch
- Added phpcs.xsd to allow validation of ruleset XML files
-- Thanks to Renaat De Muynck for the contribution
- File paths specified using --stdin-path can now point to fake file locations (request #1488)
-- Previously, STDIN files using fake file paths were excluded from checking
- Ignore patterns are now checked on symlink target paths instead of symlink source paths
-- Restores previous behaviour of this feature
- Added Generic.PHP.DiscourageGoto to warn about the use of the GOTO language construct
-- Thanks to Juliette Reinders Folmer for the contribution
- Squiz.Commenting.FunctionComment now supports nullable type hints
Expand Down
5 changes: 1 addition & 4 deletions src/Filters/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ public function __construct($iterator, $basedir, Config $config, Ruleset $rulese
*/
public function accept()
{
$filePath = Util\Common::realpath($this->current());
if ($filePath === false) {
return false;
}
$filePath = $this->current();

if (is_dir($filePath) === true) {
if ($this->config->local === true) {
Expand Down

0 comments on commit bb66250

Please sign in to comment.