10000 Fix · rectorphp/rector-src@5d22787 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d22787

Browse files
committed
Fix
1 parent a334459 commit 5d22787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NodeTypeResolver/NodeTypeResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use PhpParser\Node\Stmt\ClassMethod;
2525
use PhpParser\Node\UnionType as NodeUnionType;
2626
use PHPStan\Analyser\Scope;
27-
use PHPStan\Broker\ClassAutoloadingException;
27+
use PHPStan\Broker\ClassNotFoundException;
2828
use PHPStan\Reflection\ClassReflection;
2929
use PHPStan\Reflection\Native\NativeFunctionReflection;
3030
use PHPStan\Reflection\ReflectionProvider;
@@ -130,7 +130,7 @@ public function isObjectType(Node $node, ObjectType $requiredObjectType): bool
130130
if ($resolvedType instanceof ObjectType) {
131131
try {
132132
return $this->resolveObjectType($resolvedType, $requiredObjectType);
133-
} catch (ClassAutoloadingException) {
133+
} catch (ClassNotFoundException) {
134134
// in some type checks, the provided type in rector.php configuration does not have to exists
135135
return false;
136136
}

0 commit comments

Comments
 (0)
0