Skip to content

Commit

Permalink
fix BC
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Sep 9, 2023
1 parent f31fa30 commit a983e69
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ private function shouldSkip(string $classLikeName): bool
}

foreach ($this->classesToSkip as $classToSkip) {
if ($this->nodeNameResolver->isStringName($classLikeName, $classToSkip)) {
return true;
}

if ($this->nodeNameResolver->matchesStringName($classLikeName, $classToSkip)) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ private function shouldSkip(Class_ $class): bool
if ($this->transformOnNamespaces !== []) {
$className = (string) $this->nodeNameResolver->getName($class);
foreach ($this->transformOnNamespaces as $transformOnNamespace) {
if ($this->nodeNameResolver->isStringName($className, $transformOnNamespace)) {
continue;
}

if (! $this->nodeNameResolver->matchesStringName($className, $transformOnNamespace)) {
return true;
}
Expand Down

0 comments on commit a983e69

Please sign in to comment.