Completed
Pull Request — master (#35)
by David
01:34
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 Throwable;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.