fix: Check if key is set to prevent warning (#344)
fix: Check if key is set to prevent warning (#344)

* fix: Check if key is set to prevent warning

When the properitesMap array gets iterated to generate the fields, it happens that the uri of the typeInHierarchy is not a key of the said array; this triggers a PHP Warning:  Undefined array key. Seems to happen only for custom classes definition though. This does not prevent the command to run, this is really not critical.

* Update src/TypesGenerator.php

Co-authored-by: Kévin Dunglas <ffb4761cba839470133bee36aeb139f58d7dbaa9@dunglas.fr>

* fix: remove useless code

Co-authored-by: Kévin Dunglas <ffb4761cba839470133bee36aeb139f58d7dbaa9@dunglas.fr>
api-platform/schema-generator,api-platform/schema-generator