1
0
Fork 0
mirror of synced 2025-03-29 11:19:50 +03:00

[2.0][DDC-29] Fixed

This commit is contained in:
romanb 2009-10-03 08:54:39 +00:00
parent b444ec0139
commit dce2d79046

View file

@ -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;