Completed
Push — master ( 470fec...b61c37 )
by David
19s
created
src/Rules/Exceptions/MustRethrowRule.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
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 TheCodingMachine\PHPStan\Utils\PrefixGenerator;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
         // Let's only apply the filter to \Exception, \RuntimeException or \Throwable
38 38
         $exceptionType = null;
39 39
         foreach ($node->types as $type) {
40
-            if (in_array((string)$type, [Exception::class, RuntimeException::class, Throwable::class], true)) {
41
-                $exceptionType = (string)$type;
40
+            if (in_array((string) $type, [Exception::class, RuntimeException::class, Throwable::class], true)) {
41
+                $exceptionType = (string) $type;
42 42
                 break;
43 43
             }
44 44
         }
Please login to merge, or discard this patch.