Closed soullivaneuh closed 3 years ago
Seems to be the same issue as https://github.com/api-platform/api-platform/issues/1439, probably related to https://github.com/symfony/symfony/pull/37559 (implemented in Symfony 5.2)
Yes it is, closing as duplicate of https://github.com/api-platform/api-platform/issues/1439
Thanks for the hint!
API Platform version(s) affected: 2.6.3 (after update from 2.5.3)
Description
The swagger decorator does not like
array<T,U>
phpdoc annotation on function@return
tags.How to reproduce
Create a function that return an array with the following annotation:
On doc generation, you will have the following error:
Replacing the
@return
tag type bymixed[]
"solves" the issue.Possible Solution
Additional Context
Was working on
2.5.3
. I don't know what else to put for now, feel free to ask for details.