mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-12 10:36:09 +03:00
Minor fix
This commit is contained in:
parent
b171794cce
commit
0414277d0a
@ -102,8 +102,6 @@ class JMSModelDescriber implements ModelDescriberInterface, ModelRegistryAwareIn
|
|||||||
try {
|
try {
|
||||||
if (true === $isJmsV1 && property_exists($item, 'reflection') && null !== $item->reflection) {
|
if (true === $isJmsV1 && property_exists($item, 'reflection') && null !== $item->reflection) {
|
||||||
$reflection = $item->reflection;
|
$reflection = $item->reflection;
|
||||||
} elseif ($item instanceof VirtualProperty) {
|
|
||||||
$reflection = new \ReflectionProperty($item->class, $item->name);
|
|
||||||
} else {
|
} else {
|
||||||
$reflection = new \ReflectionProperty($item->class, $item->name);
|
$reflection = new \ReflectionProperty($item->class, $item->name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user