Skip to content

Commit

Permalink
Merge pull request #514 from ciaranmcnulty/subjectpatch-notfoundexcep…
Browse files Browse the repository at this point in the history
…tion

Fix the class attached to methodnotfoundexception
  • Loading branch information
ciaranmcnulty committed Dec 19, 2020
2 parents f62e563 + 736e992 commit 2bb3b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function apply(ClassNode $node)
$__call->setCode(<<<PHP
throw new \Prophecy\Exception\Doubler\MethodNotFoundException(
sprintf('Method `%s::%s()` not found.', get_class(\$this), func_get_arg(0)),
\$this->getProphecy(), func_get_arg(0)
get_class(\$this), func_get_arg(0)
);
PHP
);
Expand Down

0 comments on commit 2bb3b8b

Please sign in to comment.