Fixes Phpstan error when using backed enums on route requirements.
It currently fails with Parameter $requirements of attribute class FOS\RestBundle\Controller\Annotations\Post constructor expects array<string>, array<string, Symfony\Component\Routing\Requirement\EnumRequirement> given.
Fixes Phpstan error when using backed enums on route requirements.
It currently fails with
Parameter $requirements of attribute class FOS\RestBundle\Controller\Annotations\Post constructor expects array<string>, array<string, Symfony\Component\Routing\Requirement\EnumRequirement> given.