mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-12 10:36:09 +03:00
Fix a Deprecated Method Call on Symfony 5.3
This commit is contained in:
parent
7357de9c16
commit
76949ca537
@ -28,7 +28,10 @@ class ObjectPropertyDescriber implements PropertyDescriberInterface, ModelRegist
|
||||
false,
|
||||
$types[0]->getClassName(),
|
||||
$types[0]->isCollection(),
|
||||
$types[0]->getCollectionKeyType(),
|
||||
// BC layer for symfony < 5.3
|
||||
method_exists($types[0], 'getCollectionKeyTypes') ?
|
||||
($types[0]->getCollectionKeyTypes()[0] ?? null) :
|
||||
$types[0]->getCollectionKeyType(),
|
||||
// BC layer for symfony < 5.3
|
||||
method_exists($types[0], 'getCollectionValueTypes') ?
|
||||
($types[0]->getCollectionValueTypes()[0] ?? null) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user