FriendsOfSymfony / FOSRestBundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony
http://symfony.com/doc/master/bundles/FOSRestBundle/index.html
MIT License
2.79k stars 703 forks source link

Update route requirements docblock #2411

Closed vracini closed 5 months ago

vracini commented 5 months ago

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.