Skip to content

Commit

Permalink
AA-1 fixed the array_filter mock issue (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-abid authored and DavertMik committed Oct 7, 2018
1 parent 0613866 commit 130afd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AspectMock/Intercept/FunctionInjector.php
Expand Up @@ -50,7 +50,7 @@ public function getParameterDeclaration(\ReflectionParameter $parameter, $intern
{
$text = (string)$parameter;
if (preg_match('@Parameter\s#[0-9]+\s\[\s<(required|optional)>(.*)(\sor NULL)(.*)\s\]@', $text, $match)) {
$text = $match(2).$match[4];
$text = $match[2].$match[4];
} elseif (preg_match('@Parameter\s#[0-9]+\s\[\s<(required|optional)>\s(.*)\s\]@', $text, $match)) {
$text = $match[2];
} else {
Expand Down Expand Up @@ -123,4 +123,4 @@ protected function place($var, $value)
{
$this->template = str_replace("{{{$var}}}", $value, $this->template);
}
}
}

0 comments on commit 130afd1

Please sign in to comment.