Skip to content

Commit

Permalink
Do not prefix Attribute class
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 18, 2020
1 parent e496d71 commit 66473c5
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 @@ -188,6 +188,13 @@ function (string $filePath, string $prefix, string $content): string {

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

return str_replace(sprintf('%s\\Attribute', $prefix), 'Attribute', $content);
},
function (string $filePath, string $prefix, string $content): string {
return str_replace('private static final', 'private static', $content);
},
Expand Down

0 comments on commit 66473c5

Please sign in to comment.