[2.0][DDC-29] Fixed
This commit is contained in:
parent
b444ec0139
commit
dce2d79046
1 changed files with 10 additions and 0 deletions
|
@ -156,10 +156,20 @@ class ProxyClassGenerator
|
|||
// We need to pick the type hint class too
|
||||
if (($paramClass = $param->getClass()) !== null) {
|
||||
$parameterString .= '\\' . $paramClass->getName() . ' ';
|
||||
} else if ($param->isArray()) {
|
||||
$parameterString .= 'array ';
|
||||
}
|
||||
|
||||
if ($param->isPassedByReference()) {
|
||||
$parameterString .= '&';
|
||||
}
|
||||
|
||||
$parameterString .= '$' . $param->getName();
|
||||
$argumentString .= '$' . $param->getName();
|
||||
|
||||
if ($param->isDefaultValueAvailable()) {
|
||||
$parameterString .= ' = ' . var_export($param->getDefaultValue(), true);
|
||||
}
|
||||
}
|
||||
|
||||
$methods .= $parameterString . ') {' . PHP_EOL;
|
||||
|
|
Loading…
Add table
Reference in a new issue