Skip to content

Commit

Permalink
[Scoper] Fix scoper to fix prefixed regex on doctrine inflector (#6654)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Jan 6, 2025
1 parent da80966 commit d465f0f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scoper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},

Expand Down

0 comments on commit d465f0f

Please sign in to comment.