We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2991ae2 commit a5afa83Copy full SHA for a5afa83
overwrites/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php
@@ -97,10 +97,6 @@ private function buildBodyArgumentsArray(MethodNode $method)
97
// TODO support variadics as well. See #91.
98
$arguments = [];
99
foreach ($method->getArguments() as $argument) {
100
- if ($argument->isOptional()) {
101
- continue;
102
- }
103
-
104
if ($argument->isPassedByReference()) {
105
$arguments[] = sprintf("&$%s", $argument->getName());
106
} else {
0 commit comments