Skip to content

Commit 5ec4762

Browse files
committed
PropertyHookType should not be prefixed in BetterReflection
1 parent 1c4c100 commit 5ec4762

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler/build/scoper.inc.php

+7
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ function (string $filePath, string $prefix, string $content): string {
226226
sprintf('\\\\%s', $prefix),
227227
], '', $content);
228228
},
229+
function (string $filePath, string $prefix, string $content): string {
230+
if (!str_starts_with($filePath, 'vendor/ondrejmirtes/better-reflection')) {
231+
return $content;
232+
}
233+
234+
return str_replace(sprintf('%s\\PropertyHookType', $prefix), 'PropertyHookType', $content);
235+
},
229236
function (string $filePath, string $prefix, string $content): string {
230237
if (
231238
$filePath !== 'vendor/nette/utils/src/Utils/Strings.php'

0 commit comments

Comments
 (0)