We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea73d1e commit 0b80789Copy full SHA for 0b80789
1 file changed
rules/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector.php
@@ -138,6 +138,11 @@ private function isParentStaticCall(Expr $expr): bool
138
139
private function shouldSkipClass(Class_ $class): bool
140
{
141
+ // skip cases when class reflection is not found
142
+ if (! $this->reflectionProvider->hasClass((string) $this->getName($class))) {
143
+ return true;
144
+ }
145
+
146
// skip cases when parent class reflection is not found
147
if ($class->extends instanceof FullyQualified && ! $this->reflectionProvider->hasClass(
148
$class->extends->toString()
0 commit comments