protected function reflectClassMethodParameter($className, MethodReflection $method, ParameterReflection $parameter)
{
$methodName = $method->getName();
$paramAnnotations = $method->isTaggedWith('param') ? $method->getTagValues('param') : [];
$this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_PARAMETERS][$parameter->getName()] = $this->convertParameterReflectionToArray($parameter, $method);
if ($this->settings['reflection']['logIncorrectDocCommentHints'] !== true) {
return;
}
if (!isset($paramAnnotations[$parameter->getPosition()])) {
$this->log(' Missing @param for "' . $method->getName() . '::$' . $parameter->getName(), LOG_DEBUG);
return;
}
$parameterAnnotation = explode(' ', $paramAnnotations[$parameter->getPosition()], 3);
if (count($parameterAnnotation) < 2) {
$this->log(' Wrong @param use for "' . $method->getName() . '::' . $parameter->getName() . '": "' . implode(' ', $parameterAnnotation) . '"', LOG_DEBUG);
}
if (isset($this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_PARAMETERS][$parameter->getName()][self::DATA_PARAMETER_TYPE]) && $this->classReflectionData[$className][self::DATA_CLASS_METHODS][$methodName][self::DATA_METHOD_PARAMETERS][$parameter->getName()][self::DATA_PARAMETER_TYPE] !== $this->cleanClassName($parameterAnnotation[0])) {
$this->log(' Wrong type in @param for "' . $method->getName() . '::' . $parameter->getName() . '": "' . $parameterAnnotation[0] . '"', LOG_DEBUG);
}
if ($parameter->getName() !== ltrim($parameterAnnotation[1], '$&')) {
$this->log(' Wrong name in @param for "' . $method->getName() . '::$' . $parameter->getName() . '": "' . $parameterAnnotation[1] . '"', LOG_DEBUG);
}
}