Skip to content

Commit

Permalink
Inline object
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 6, 2020
1 parent 7646ea0 commit 0a0ac90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Framework/MockObject/Invocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,7 @@ public function generateReturnValue()
return null;

default:
$generator = new Generator;

return $generator->getMock($this->returnType, [], [], '', false);
return (new Generator)->getMock($this->returnType, [], [], '', false);
}
}

Expand Down

0 comments on commit 0a0ac90

Please sign in to comment.