Skip to content

Commit

Permalink
Patch wrong namespace prefixing in PHAR in WindowsRegistryLogicalFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 20, 2024
1 parent 95fbd57 commit f61d324
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/build/scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ function (string $filePath, string $prefix, string $content): string {

return str_replace(sprintf('use %s\\PhpParser;', $prefix), 'use PhpParser;', $content);
},
function (string $filePath, string $prefix, string $content): string {
if ($filePath !== 'vendor/fidry/cpu-core-counter/src/Finder/WindowsRegistryLogicalFinder.php') {
return $content;
}
return str_replace(sprintf('%s\\\\reg query', $prefix), 'reg query', $content);
},
],
'exclude-namespaces' => [
'PHPStan',
Expand Down

0 comments on commit f61d324

Please sign in to comment.