We have issues with n98-magerun2 modules use Isolated\Symfony\Component\Finder\Finder; $polyfillsBootstrap = Finder::create() ->files() ->in(__DIR__ . '/vendor/symfony/polyfill-*') ->name('bootstrap.php'); return [ 'prefix' => 'N98Magerun2\\Ext', 'whitelist' => [ 'Composer\\*', 'Magento\\*', 'N98\\*', 'Symfony\\Polyfill\\*', 'Symfony\\Component\\Console\\*', ], 'files-whitelist' => array_map( static function ($file) { return $file->getPathName(); }, iterator_to_array($polyfillsBootstrap) ), ];