cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
466 stars 87 forks source link

Error: Call to a member function resolveReferences() on array #119

Closed garak closed 2 years ago

garak commented 2 years ago

Method resolverReferences is calling resolveReferences method on $referencedObject without checking if it's an array, resulting in the error mentioned in issue object. The $referencedObject variable is suggested via phpdoc to be Response|Reference|null, but resolve method can return an array.

oxoTHuk89 commented 2 years ago

Agree ++