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

Evaluate template parameter handling with `ClassOrInterfaceType` #147

Open joorei opened 3 months ago

joorei commented 3 months ago

phpDocumentor currently does not support proper generics. Classes/interfaces with template parameters will result in a phpDocumentor\Reflection\Types\Collection instance. That class however silently omits all template parameters except the last two, and thus is not reliable to use.

This is a known issue: https://github.com/phpDocumentor/phpDocumentor/issues/2122

Some custom template parameter handling was added, but the actual limitations still need to be documented (or mitigated).