mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
Don't parse custom properties as classes.
Sometimes instead real class name we can use custom handler name. Then this class can't be initialized and we will get this exception ```ReflectionException: Class custom_handler_name does not exist```
This commit is contained in:
parent
b9b453c857
commit
55f26508ab
@ -150,6 +150,11 @@ class JmsMetadataParser implements ParserInterface, PostParserInterface
|
||||
}
|
||||
}
|
||||
|
||||
// we can use type property also for custom handlers, then we don't have here real class name
|
||||
if (!class_exists($dataType['class'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// if class already parsed, continue, to avoid infinite recursion
|
||||
if (in_array($dataType['class'], $visited)) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user