Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Apr 13, 2020
1 parent 3e823ff commit a6ff54e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/PhpDoc/PHPUnit/MockObjectTypeNodeResolverExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ public function resolve(TypeNode $typeNode, \PHPStan\Analyser\NameScope $nameSco

if (array_key_exists($type->getClassName(), $mockClassNames)) {
$resultType = \PHPStan\Type\TypeCombinator::intersect(...$types);
if (!$resultType instanceof NeverType) {
return $resultType;
if ($resultType instanceof NeverType) {
continue;
}

return $resultType;
}
}

Expand Down

0 comments on commit a6ff54e

Please sign in to comment.