Skip to content

Commit

Permalink
ReturnTypeWillChange should not be prefixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Dec 13, 2021
1 parent c642dd0 commit 2ed6f87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compiler/build/scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@ function (string $filePath, string $prefix, string $content): string {

return str_replace(sprintf('%s\\Attribute', $prefix), 'Attribute', $content);
},
function (string $filePath, string $prefix, string $content): string {
if (strpos($filePath, 'src/') !== 0) {
return $content;
}

return str_replace(sprintf('%s\\ReturnTypeWillChange', $prefix), 'ReturnTypeWillChange', $content);
},
function (string $filePath, string $prefix, string $content): string {
if ($filePath !== 'vendor/ondrejmirtes/better-reflection/src/SourceLocator/SourceStubber/PhpStormStubsSourceStubber.php') {
return $content;
Expand Down

0 comments on commit 2ed6f87

Please sign in to comment.