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
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.
Unlike
NonClassOrInterfaceType
,NonClassOrInterfaceType
can be used to represent primitive types and works well forbool
,int
or evenint<0,max>
. However, it does not handle template parameters correctly, which are relevant in types likeiterable
orarray
.getAllFullyQualifiedNames
will always return an empty array, which is not correct for something likeiterable<\Exception>
.getTemplateParameter
will simply always throw an exception.