Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
AA-1 fixed the array_filter mock issue
  • Loading branch information
Abid Ahmed committed Oct 7, 2018
commit eb9b905e1f8d7d1facd6516a6b7bcbd037c0050a
4 changes: 2 additions & 2 deletions src/AspectMock/Intercept/FunctionInjector.php
Original file line number Diff line number Diff line change
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);
}
}
}