Skip to content

Commit

Permalink
Improve scoping a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Mar 7, 2022
1 parent 2a9ea7e commit 510456c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"openlss/lib-array2xml": "^1.0",
"sebastian/diff": "^3.0 || ^4.0",
"symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0",
"symfony/polyfill-php80": "^1.25",
"webmozart/path-util": "^2.3"
},
"provide": {
Expand Down
6 changes: 6 additions & 0 deletions scoper.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,15 @@ function ($filePath, $prefix, $contents) {
],
'whitelist' => [
ClassLoader::class,
Stringable::class,
'Psalm\*',
],
'files-whitelist' => [
'src/spl_object_id.php',
'vendor/symfony/polyfill-php80/Php80.php',
'vendor/symfony/polyfill-php80/PhpToken.php',
'vendor/symfony/polyfill-php80/Resources/stubs/Attribute.php',
'vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
'vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php',
],
];

0 comments on commit 510456c

Please sign in to comment.