Skip to content

Commit

Permalink
Fix Scope config
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 29, 2022
1 parent 9415552 commit 80b4070
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions compiler/build/scoper.inc.php
Expand Up @@ -44,7 +44,7 @@
return [
'prefix' => $prefix,
'finders' => [],
'files-whitelist' => $stubs,
'exclude-files' => $stubs,
'patchers' => [
function (string $filePath, string $prefix, string $content): string {
if ($filePath !== 'bin/phpstan') {
Expand Down Expand Up @@ -265,18 +265,18 @@ function (string $filePath, string $prefix, string $content): string {
return str_replace(sprintf('\'%s\\\\JetBrains\\\\', $prefix), '\'JetBrains\\\\', $content);
}
],
'whitelist' => [
'PHPStan\*',
'PhpParser\*',
'Hoa\*',
'Symfony\Polyfill\Php80\*',
'Symfony\Polyfill\Mbstring\*',
'Symfony\Polyfill\Intl\Normalizer\*',
'Symfony\Polyfill\Php73\*',
'Symfony\Polyfill\Php74\*',
'Symfony\Polyfill\Php72\*',
'Symfony\Polyfill\Intl\Grapheme\*',
'expose-namespaces' => [
'PHPStan',
'PhpParser',
'Hoa',
'Symfony\Polyfill\Php80',
'Symfony\Polyfill\Mbstring',
'Symfony\Polyfill\Intl\Normalizer',
'Symfony\Polyfill\Php73',
'Symfony\Polyfill\Php74',
'Symfony\Polyfill\Php72',
'Symfony\Polyfill\Intl\Grapheme',
],
'whitelist-global-functions' => false,
'whitelist-global-classes' => false,
'expose-global-functions' => false,
'expose-global-classes' => false,
];

0 comments on commit 80b4070

Please sign in to comment.