@@ -9,7 +9,6 @@  | 
                                                    ||
| 9 | 9 | use PhpParser\NodeTraverser;  | 
                                                        
| 10 | 10 | use PhpParser\NodeVisitorAbstract;  | 
                                                        
| 11 | 11 | use PHPStan\Analyser\Scope;  | 
                                                        
| 12 | -use PHPStan\Broker\Broker;  | 
                                                        |
| 13 | 12 | use PHPStan\Rules\Rule;  | 
                                                        
| 14 | 13 | |
| 15 | 14 | /**  | 
                                                        
@@ -5,8 +5,6 @@  | 
                                                    ||
| 5 | 5 | |
| 6 | 6 | use PhpParser\Node;  | 
                                                        
| 7 | 7 | use PhpParser\Node\Stmt\Switch_;  | 
                                                        
| 8 | -use PhpParser\NodeTraverser;  | 
                                                        |
| 9 | -use PhpParser\NodeVisitorAbstract;  | 
                                                        |
| 10 | 8 | use PHPStan\Analyser\Scope;  | 
                                                        
| 11 | 9 | use PHPStan\Rules\Rule;  | 
                                                        
| 12 | 10 | use TheCodingMachine\PHPStan\Utils\PrefixGenerator;  | 
                                                        
@@ -5,10 +5,7 @@  | 
                                                    ||
| 5 | 5 | |
| 6 | 6 | use PhpParser\Node;  | 
                                                        
| 7 | 7 | use PHPStan\Analyser\Scope;  | 
                                                        
| 8 | -use PHPStan\Reflection\FunctionReflection;  | 
                                                        |
| 9 | -use PHPStan\Reflection\MethodReflection;  | 
                                                        |
| 10 | 8 | use PHPStan\Rules\Rule;  | 
                                                        
| 11 | -use PHPStan\ShouldNotHappenException;  | 
                                                        |
| 12 | 9 | use TheCodingMachine\PHPStan\Utils\PrefixGenerator;  | 
                                                        
| 13 | 10 | |
| 14 | 11 | /**  | 
                                                        
@@ -6,7 +6,6 @@  | 
                                                    ||
| 6 | 6 | use PhpParser\Node;  | 
                                                        
| 7 | 7 | use PhpParser\Node\Stmt\Catch_;  | 
                                                        
| 8 | 8 | use PHPStan\Analyser\Scope;  | 
                                                        
| 9 | -use PHPStan\Broker\Broker;  | 
                                                        |
| 10 | 9 | use PHPStan\Rules\Rule;  | 
                                                        
| 11 | 10 | use function strpos;  | 
                                                        
| 12 | 11 | |
@@ -6,14 +6,12 @@  | 
                                                    ||
| 6 | 6 | use Exception;  | 
                                                        
| 7 | 7 | use function in_array;  | 
                                                        
| 8 | 8 | use PhpParser\Node;  | 
                                                        
| 9 | -use PhpParser\NodeFinder;  | 
                                                        |
| 10 | 9 | use PhpParser\Node\Stmt\Catch_;  | 
                                                        
| 11 | 10 | use PhpParser\NodeTraverser;  | 
                                                        
| 12 | 11 | use PhpParser\NodeVisitorAbstract;  | 
                                                        
| 13 | 12 | use PhpParser\Node\Expr\Variable;  | 
                                                        
| 14 | 13 | use PhpParser\Node\Expr\StaticCall;  | 
                                                        
| 15 | 14 | use PHPStan\Analyser\Scope;  | 
                                                        
| 16 | -use PHPStan\Broker\Broker;  | 
                                                        |
| 17 | 15 | use PHPStan\Rules\Rule;  | 
                                                        
| 18 | 16 | use RuntimeException;  | 
                                                        
| 19 | 17 | use TheCodingMachine\PHPStan\Utils\PrefixGenerator;  | 
                                                        
@@ -42,8 +42,8 @@ discard block  | 
                                                    ||
| 42 | 42 | // Let's only apply the filter to \Exception, \RuntimeException or \Throwable  | 
                                                        
| 43 | 43 | $exceptionType = null;  | 
                                                        
| 44 | 44 |          foreach ($node->types as $type) { | 
                                                        
| 45 | -            if (in_array((string)$type, [Exception::class, RuntimeException::class, Throwable::class], true)) { | 
                                                        |
| 46 | - $exceptionType = (string)$type;  | 
                                                        |
| 45 | +            if (in_array((string) $type, [Exception::class, RuntimeException::class, Throwable::class], true)) { | 
                                                        |
| 46 | + $exceptionType = (string) $type;  | 
                                                        |
| 47 | 47 | break;  | 
                                                        
| 48 | 48 | }  | 
                                                        
| 49 | 49 | }  | 
                                                        
@@ -108,8 +108,8 @@ discard block  | 
                                                    ||
| 108 | 108 | return false;  | 
                                                        
| 109 | 109 | }  | 
                                                        
| 110 | 110 | |
| 111 | -                $varArgs = array_filter($args, function ($arg) { | 
                                                        |
| 112 | - return $arg->value instanceof Variable && $arg->value->name === $this->exceptionVarName ;  | 
                                                        |
| 111 | +                $varArgs = array_filter($args, function($arg) { | 
                                                        |
| 112 | + return $arg->value instanceof Variable && $arg->value->name === $this->exceptionVarName;  | 
                                                        |
| 113 | 113 | });  | 
                                                        
| 114 | 114 | |
| 115 | 115 | return 0 !== count($varArgs);  |