Skip to content

Commit

Permalink
Merge pull request #272 from localheinz/fix/split
Browse files Browse the repository at this point in the history
Fix: Split condition
  • Loading branch information
localheinz authored Nov 8, 2021
2 parents 56b8d10 + 9b4d3ad commit 3e49e71
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ public function getTypeFromMethodCall(

$returnType = $parametersAcceptor->getReturnType();

if (
!$calledOnType instanceof Type\Generic\GenericObjectType
|| Prophecy\ObjectProphecy::class !== $calledOnType->getClassName()
) {
if (!$calledOnType instanceof Type\Generic\GenericObjectType) {
return $returnType;
}

if (Prophecy\ObjectProphecy::class !== $calledOnType->getClassName()) {
return $returnType;
}

Expand Down

0 comments on commit 3e49e71

Please sign in to comment.