Skip to content

Commit a5afa83

Browse files
committed
Fix testPassingByReference() test
1 parent 2991ae2 commit a5afa83

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

overwrites/Prophecy/Doubler/ClassPatch/ProphecySubjectPatch.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ private function buildBodyArgumentsArray(MethodNode $method)
9797
// TODO support variadics as well. See #91.
9898
$arguments = [];
9999
foreach ($method->getArguments() as $argument) {
100-
if ($argument->isOptional()) {
101-
continue;
102-
}
103-
104100
if ($argument->isPassedByReference()) {
105101
$arguments[] = sprintf("&$%s", $argument->getName());
106102
} else {

0 commit comments

Comments
 (0)