Skip to content

Commit 25164a5

Browse files
committed
Fix testPreserveArgumentDefaultValue() test
1 parent a5afa83 commit 25164a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classes/ReferencePreservingRevealer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace phpmock\prophecy;
44

5+
use phpmock\generator\MockFunctionGenerator;
56
use Prophecy\Prophecy\RevealerInterface;
67

78
/**
@@ -36,6 +37,7 @@ public function __construct(RevealerInterface $revealer)
3637
public function reveal($value)
3738
{
3839
if (is_array($value)) {
40+
MockFunctionGenerator::removeDefaultArguments($value);
3941
foreach ($value as &$item) {
4042
$item = $this->revealer->reveal($item);
4143
}

0 commit comments

Comments
 (0)