mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
Fix ObjectDescriber
This commit is contained in:
parent
c048adf7b7
commit
e0ce82f8ad
@ -71,7 +71,7 @@ class ObjectModelDescriber implements ModelDescriberInterface, ModelRegistryAwar
|
||||
}
|
||||
|
||||
$types = $this->propertyInfo->getTypes($class, $propertyName);
|
||||
if (0 === count($types)) {
|
||||
if (null === $types || 0 === count($types)) {
|
||||
throw new \LogicException(sprintf('The PropertyInfo component was not able to guess the type of %s::$%s', $class, $propertyName));
|
||||
}
|
||||
if (count($types) > 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user