Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ public function provideMinPhpVersion(): int

private function shouldSkip(string $classLikeName): bool
{
if (! $this->reflectionProvider->hasClass($classLikeName)) {
return true;
}

// skip short class names, mostly invalid use of strings
if (! str_contains($classLikeName, '\\')) {
return true;
Expand All @@ -160,6 +156,10 @@ private function shouldSkip(string $classLikeName): bool
return true;
}

if (! $this->reflectionProvider->hasClass($classLikeName)) {
return true;
}

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