Skip to content

Commit 321ddf9

Browse files
committed
Merge branch 'processSubstitution' of https://github.com/exussum12/PHP_CodeSniffer
2 parents fa95466 + 9ef6270 commit 321ddf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Util/Common.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ public static function realpath($path)
7070
}
7171
}
7272

73+
// Check for process substitution.
74+
if (strpos($path, '/dev/fd') === 0) {
75+
return str_replace('/dev/fd', 'php://fd', $path);
76+
}
77+
7378
// No extra work needed if this is not a phar file.
7479
if (self::isPharFile($path) === false) {
7580
return realpath($path);

0 commit comments

Comments
 (0)