Skip to content

Commit

Permalink
Fix php warning for "*" ignore path when open_basedir is set
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored and ondrejmirtes committed May 15, 2021
1 parent 6ffccaf commit 9b38dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Analyser/IgnoredErrorHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function initialize(): IgnoredErrorHelperResult
'index' => $i,
'ignoreError' => $ignoreError,
];
} elseif (is_file($ignoreError['path'])) {
} elseif (@is_file($ignoreError['path'])) {
$normalizedPath = $this->fileHelper->normalizePath($ignoreError['path']);
$ignoreError['path'] = $normalizedPath;
$ignoreErrorsByFile[$normalizedPath][] = [
Expand Down

0 comments on commit 9b38dff

Please sign in to comment.