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 707 forks source link

RequestParam strict default value has changed #2356

Closed alterphp closed 2 years ago

alterphp commented 2 years ago

Hi !

Version 3.2.0 introduced support of PHP attributes. I think there is a mistake in the RequestParam constructor, where $strict default value should match the property default value.

In my project, validation of RequestParam is not throwing errors with validation constraints as before updating...

alterphp commented 2 years ago

Here is the commit that seems to introduce the bug : https://github.com/FriendsOfSymfony/FOSRestBundle/commit/db088fd34e85b1220f0a526d4e6e1fc428c26334