We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47c3d69 commit 8ade832Copy full SHA for 8ade832
1 file changed
rules/DeadCode/Rector/FunctionLike/NarrowWideUnionReturnTypeRector.php
@@ -35,7 +35,6 @@
35
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
36
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
37
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
38
-use Webmozart\Assert\Assert;
39
40
/**
41
* @see \Rector\Tests\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector\NarrowWideUnionReturnTypeRectorTest
@@ -130,6 +129,7 @@ public function refactor(Node $node): ?Node
130
129
$returnType = $node->returnType;
131
132
$returnType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($returnType);
+
133
$actualReturnTypes = $this->collectActualReturnTypes($returnStatements);
134
135
if ($hasImplicitNullReturn) {
0 commit comments