diff --git a/compiler/build/scoper.inc.php b/compiler/build/scoper.inc.php index 6525a1d70ee..682be2dcbab 100644 --- a/compiler/build/scoper.inc.php +++ b/compiler/build/scoper.inc.php @@ -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') {