Skip to content

Commit c6360d4

Browse files
committed
One more patch
1 parent b9ef26f commit c6360d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler/build/scoper.inc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ function (string $filePath, string $prefix, string $content): string {
239239
'\'Ds\\',
240240
], $content);
241241
},
242+
function (string $filePath, string $prefix, string $content): string {
243+
if (strpos($filePath, 'src/Testing/ErrorFormatterTestCase.php') !== 0) {
244+
return $content;
245+
}
246+
247+
return str_replace(sprintf('new Error(\'%s\\Foobar\\Buz', $prefix), 'new Error(\'Foobar\\Buz', $content);
248+
},
242249
],
243250
'exclude-namespaces' => [
244251
'PHPStan',

0 commit comments

Comments
 (0)