diff --git a/scoper.php b/scoper.php index 97e4f38d54..34684e32dd 100644 --- a/scoper.php +++ b/scoper.php @@ -118,16 +118,6 @@ static function (string $filePath, string $prefix, string $content): string { // unprefix string classes, as they're string on purpose - they have to be checked in original form, not prefixed static function (string $filePath, string $prefix, string $content): string { - // skip vendor, expect rector packages - if (\str_contains($filePath, 'vendor/') && ! \str_contains($filePath, 'vendor/rector')) { - return $content; - } - - // skip bin/rector.php for composer autoload class - if (\str_ends_with($filePath, 'bin/rector.php')) { - return $content; - } - return Unprefixer::unprefixQuoted($content, $prefix); },