Skip to content

Commit 130afd1

Browse files
ahmed-abidDavertMik
authored andcommitted
AA-1 fixed the array_filter mock issue (#157)
1 parent 0613866 commit 130afd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AspectMock/Intercept/FunctionInjector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getParameterDeclaration(\ReflectionParameter $parameter, $intern
5050
{
5151
$text = (string)$parameter;
5252
if (preg_match('@Parameter\s#[0-9]+\s\[\s<(required|optional)>(.*)(\sor NULL)(.*)\s\]@', $text, $match)) {
53-
$text = $match(2).$match[4];
53+
$text = $match[2].$match[4];
5454
} elseif (preg_match('@Parameter\s#[0-9]+\s\[\s<(required|optional)>\s(.*)\s\]@', $text, $match)) {
5555
$text = $match[2];
5656
} else {
@@ -123,4 +123,4 @@ protected function place($var, $value)
123123
{
124124
$this->template = str_replace("{{{$var}}}", $value, $this->template);
125125
}
126-
}
126+
}

0 commit comments

Comments
 (0)