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

Deprecation warning after updating Symfony from version 6.2 to 6.3 #2393

Closed Heaven31415 closed 1 year ago

Heaven31415 commented 1 year ago

Hi.

Whenever I run any console command in my Symfony project, I receive the following deprecation warning:

[info] User Deprecated: Method "Symfony\Component\HttpKernel\Bundle\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "FOS\RestBundle\FOSRestBundle" now to avoid errors or add an explicit @return annotation to suppress this message.

This started after I updated my Symfony version from 6.2 to 6.3. On 6.2 I didn't see anything similar to that. I'm using FOSRestBundle version 3.5.0.

This problem was briefly mentioned here: https://github.com/FriendsOfSymfony/FOSRestBundle/issues/2389, however I believe it wasn't properly reported, that's why I decided to create another ticket.

raziel057 commented 1 year ago

@Heaven31415 It's already covered by the PR that is not yet merged: https://github.com/FriendsOfSymfony/FOSRestBundle/pull/2392

See the folowing commit: https://github.com/FriendsOfSymfony/FOSRestBundle/pull/2392/commits/a4ad08be657d0702aee189b61f851a1e77dfd8e1#diff-dbf75c5359a6a60cd85402ff7bab7f9d7c5ec9a0794c461ccd90b285b9f033e1

deluxetom commented 1 year ago

@goetas this issue can be closed