demos-europe / edt

Enables your PHP application to expose its entities as REST resources using the feature rich JSON:API specification as API. How and to whom your entities are exposed is highly customizable while minimizing boilerplate code.
MIT License
2 stars 1 forks source link

Handle template parameters in `NonClassOrInterfaceType` correctly #146

Open joorei opened 3 months ago

joorei commented 3 months ago

Unlike NonClassOrInterfaceType, NonClassOrInterfaceType can be used to represent primitive types and works well for bool, int or even int<0,max>. However, it does not handle template parameters correctly, which are relevant in types like iterable or array. getAllFullyQualifiedNames will always return an empty array, which is not correct for something like iterable<\Exception>. getTemplateParameter will simply always throw an exception.