Open sd1328 opened 3 years ago
Class \Laminas\Code\Reflection\MethodReflection Method: getPrototype Line: 100
if ($docBlock) { $return = $docBlock->getTag('return'); $returnTypes = $return->getTypes(); // return false $returnType = count($returnTypes) > 1 ? implode('|', $returnTypes) : $returnTypes[0]; }
There is no check for the existence of @return. If it is absent, we get an exception "Call to a member function getTypes() on bool"
@sd1328 : please provide a code to reproducing the bug
Insufficient return value validation
Class \Laminas\Code\Reflection\MethodReflection Method: getPrototype Line: 100
There is no check for the existence of @return. If it is absent, we get an exception "Call to a member function getTypes() on bool"