Skip to content

Commit 66473c5

Browse files
committed
Do not prefix Attribute class
1 parent e496d71 commit 66473c5

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
@@ -188,6 +188,13 @@ function (string $filePath, string $prefix, string $content): string {
188188

189189
return str_replace(sprintf('%s\\ReflectionUnionType', $prefix), 'ReflectionUnionType', $content);
190190
},
191+
function (string $filePath, string $prefix, string $content): string {
192+
if (strpos($filePath, 'src/') !== 0) {
193+
return $content;
194+
}
195+
196+
return str_replace(sprintf('%s\\Attribute', $prefix), 'Attribute', $content);
197+
},
191198
function (string $filePath, string $prefix, string $content): string {
192199
return str_replace('private static final', 'private static', $content);
193200
},

0 commit comments

Comments
 (0)