Skip to content

Commit fd8f0a8

Browse files
committed
Get rid of more prefixed strings we don't want
1 parent 2ca5859 commit fd8f0a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

compiler/build/scoper.inc.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ function (string $filePath, string $prefix, string $content): string {
7777
$content
7878
);
7979
},
80+
function (string $filePath, string $prefix, string $content): string {
81+
if (strpos($filePath, 'src/') !== 0) {
82+
return $content;
83+
}
84+
85+
$content = str_replace(sprintf('\'%s\\\\r\\\\n\'', $prefix), '\'\\\\r\\\\n\'', $content);
86+
$content = str_replace(sprintf('\'%s\\\\', $prefix), '\'', $content);
87+
88+
return $content;
89+
}
8090
],
8191
'whitelist' => [
8292
'PHPStan\*',

0 commit comments

Comments
 (0)