diff --git a/src/AspectMock/Intercept/FunctionInjector.php b/src/AspectMock/Intercept/FunctionInjector.php index 8d07eaf..e1722b8 100644 --- a/src/AspectMock/Intercept/FunctionInjector.php +++ b/src/AspectMock/Intercept/FunctionInjector.php @@ -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 { @@ -123,4 +123,4 @@ protected function place($var, $value) { $this->template = str_replace("{{{$var}}}", $value, $this->template); } -} \ No newline at end of file +}