Skip to content
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

Merged
merged 3 commits into from
Aug 5, 2023
Merged

Conversation

raziel057
Copy link
Contributor

@raziel057 raziel057 commented Aug 4, 2023

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.

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 raziel057 changed the title Update ImportTranslationsCommand.php Fix deprecations for SF6.3 Aug 4, 2023
@bartmcleod
Copy link
Collaborator

@raziel057 The tests fail

@raziel057
Copy link
Contributor Author

@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.

@bartmcleod
Copy link
Collaborator

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

@raziel057
Copy link
Contributor Author

I spent time to test and fix issues related to DEV environment to run the tests: #432

@raziel057
Copy link
Contributor Author

@bartmcleod Do you I need to do something else for integration of the change here?

@bartmcleod
Copy link
Collaborator

@raziel057 probably need to merge master back in

@bartmcleod bartmcleod mentioned this pull request Aug 5, 2023
@bartmcleod bartmcleod merged commit 9121a85 into lexik:master Aug 5, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants