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

Support Symfony 7 by adding return types conditionally #10919

Merged

Conversation

derrabus
Copy link
Member

Symfony 7 will add more return types to the console component. This PR uses conditional traits to add the necessary return types if they're present upstream. This way, we won't break downstream projects that override our commands unless those projects upgrade to Symfony 7 themselves.

@X-Coder264
Copy link

Is there any chance of getting this into the 2.15.x branch? Our app's test suite has over 7000 tests and hundreds if not thousands of them started failing after the recent UoW commit order changes that were made in the 2.16 release. Fixing all of that is gonna be a huge task and if this only gets merged into 2.17 it's effectively gonna prevent us from updating to Symfony 7 for a long while.

@derrabus
Copy link
Member Author

No, we don't maintain 2.15.x anymore. If you want to stay on 2.15, you'll have to fork that branch eventually anyway.

derrabus added a commit to doctrine/dbal that referenced this pull request Aug 24, 2023
@derrabus derrabus merged commit aa333e2 into doctrine:2.17.x Aug 24, 2023
41 checks passed
@derrabus derrabus deleted the improvement/execute-conditional-type branch August 24, 2023 08:36
cgknx pushed a commit to cgknx/dbal that referenced this pull request Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants