Skip to content

Commit a6ff54e

Browse files
committed
Fix CS
1 parent 3e823ff commit a6ff54e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/PhpDoc/PHPUnit/MockObjectTypeNodeResolverExtension.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ public function resolve(TypeNode $typeNode, \PHPStan\Analyser\NameScope $nameSco
4646

4747
if (array_key_exists($type->getClassName(), $mockClassNames)) {
4848
$resultType = \PHPStan\Type\TypeCombinator::intersect(...$types);
49-
if (!$resultType instanceof NeverType) {
50-
return $resultType;
49+
if ($resultType instanceof NeverType) {
50+
continue;
5151
}
52+
53+
return $resultType;
5254
}
5355
}
5456

0 commit comments

Comments
 (0)