mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #434 from ahilles107/patch-2
Don't parse custom properties as classes.
This commit is contained in:
commit
c03d35bee4
@ -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 class already parsed, continue, to avoid infinite recursion
|
||||||
if (in_array($dataType['class'], $visited)) {
|
if (in_array($dataType['class'], $visited)) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user