mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-02 21:36:14 +03:00
Merge pull request #434 from ahilles107/patch-2
Don't parse custom properties as classes.
This commit is contained in:
commit
c03d35bee4
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue