-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix deprecations for SF6.3 #431
Conversation
Fix deprecation raised on Symfony 6.3: Method "Symfony\Component\Console\Command\Command::configure()" might add "void" as a native return type declaration in the future. Do the same in child class "Lexik\Bundle\TranslationBundle\Command\ImportTranslationsCommand" now to avoid errors or add an explicit @return annotation to suppress this message. Note that the "void" return type have been introduced in PHP 8.1 so it's in line with the constraint in composer.json.
@raziel057 The tests fail |
I seen this. It's not related to those commits but related to changes in a new release of doctrine annotation. No auto build happened from long time on this bundle. |
I fixed the auto build, but apparently, since then it broke. We need to fix that, as passing unit tests are the only check apart from looking at the code and thinking it looks reasonable :-) So @raziel057 if you can fix the tests that would be great, otherwise I will need to find some time to do so |
I spent time to test and fix issues related to DEV environment to run the tests: #432 |
@bartmcleod Do you I need to do something else for integration of the change here? |
@raziel057 probably need to merge master back in |
Fix deprecation raised on Symfony 6.3 related to missing "void" return type in configure methods of commands:
Method "Symfony\Component\Console\Command\Command::configure()" might add "void" as a native return type declaration in the future. Do the same in child class "Lexik\Bundle\TranslationBundle\Command\ImportTranslationsCommand" now to avoid errors or add an explicit @return annotation to suppress this message.
Method "Symfony\Component\Console\Command\Command::configure()" might add "void" as a native return type declaration in the future. Do the same in child class "Lexik\Bundle\TranslationBundle\Command\ExportTranslationsCommand" now to avoid errors or add an explicit @return annotation to suppress this message.
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 "Lexik\Bundle\TranslationBundle\LexikTranslationBundle" now to avoid errors or add an explicit @return annotation to suppress this message.
Note that the "void" return type have been introduced in PHP 8.1 so it's in line with the constraint in composer.json.