Skip to content

Commit

Permalink
Fix: Inline variable
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed May 8, 2020
1 parent 0b7ee4e commit 1d2a28e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,13 @@ public function getTypeFromMethodCall(
$className = $scope->getClassReflection()->getName();
}

$mockTypeIntersection = Type\TypeCombinator::intersect(
new Type\ObjectType($className),
...$calledOnType->getTypes()
);

return new Type\Generic\GenericObjectType(
Prophecy\ObjectProphecy::class,
[
$mockTypeIntersection,
Type\TypeCombinator::intersect(
new Type\ObjectType($className),
...$calledOnType->getTypes()
),
]
);
}
Expand Down

0 comments on commit 1d2a28e

Please sign in to comment.