Skip to content

Commit

Permalink
scoper.inc.php - Fix symonfy's php polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Nov 2, 2022
1 parent 6668d1a commit 001bd79
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scoper.inc.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<?php declare(strict_types = 1);

$polyfills = \array_merge(
(array) glob(__DIR__ . '/vendor/symfony/polyfill-*/*.php'),
(array) glob(__DIR__ . '/vendor/symfony/polyfill-*/Resources/stubs/*.php')
);

return [
'prefix' => 'PogoPhar',
'exclude-files' => ['templates/pogolib.php'],
'exclude-files' => array_merge(['templates/pogolib.php'], $polyfills),
'exclude-namespaces' => ['Symfony\Polyfill'],
];

0 comments on commit 001bd79

Please sign in to comment.