@@ -10,7 +10,6 @@ |
||
10 | 10 | use PhpParser\NodeTraverser; |
11 | 11 | use PhpParser\NodeVisitorAbstract; |
12 | 12 | use PHPStan\Analyser\Scope; |
13 | -use PHPStan\Broker\Broker; |
|
14 | 13 | use PHPStan\Rules\Rule; |
15 | 14 | use RuntimeException; |
16 | 15 | use Throwable; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | // Let's only apply the filter to \Exception, \RuntimeException or \Throwable |
37 | 37 | $elected = false; |
38 | 38 | foreach ($node->types as $type) { |
39 | - if (in_array((string)$type, [Exception::class, RuntimeException::class, Throwable::class], true)) { |
|
39 | + if (in_array((string) $type, [Exception::class, RuntimeException::class, Throwable::class], true)) { |
|
40 | 40 | $elected = true; |
41 | 41 | break; |
42 | 42 | } |