cebe / php-openapi

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

Fix bug with referencing non-object types #48

Closed cebe closed 4 years ago

cebe commented 4 years ago

a reference to an array was crashing with an invalid function call. Proper instanceof check has been added in Reference.

also creating references in non-object types and Type::ANY is working correctly now.

fixes #47