Index: library/Zend/CodeGenerator/Php/Parameter.php =================================================================== --- library/Zend/CodeGenerator/Php/Parameter.php (revision 18227) +++ library/Zend/CodeGenerator/Php/Parameter.php (working copy) @@ -74,16 +74,12 @@ $param = new Zend_CodeGenerator_Php_Parameter(); $param->setName($reflectionParameter->getName()); - try { - $param->setType($reflectionParameter->getType()); - } catch(Zend_Reflection_Exception $e) { - if($reflectionParameter->isArray()) { - $param->setType('array'); - } else { - $typeClass = $reflectionParameter->getClass(); - if($typeClass !== null) { - $param->setType($typeClass->getName()); - } + if($reflectionParameter->isArray()) { + $param->setType('array'); + } else { + $typeClass = $reflectionParameter->getClass(); + if($typeClass !== null) { + $param->setType($typeClass->getName()); } }