Skip to content

[DependencyInjection] Warns instanceof should be called before services registration #18346

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

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented May 24, 2023

Fixes symfony/symfony#49988 and symfony/symfony#50329

Order matters when configuring the service container using PHP.

Maybe we should warn about defaults too but I’m not sure where 🤔

@carsonbot carsonbot added this to the 5.4 milestone May 24, 2023
@MatTheCat MatTheCat force-pushed the php-di-configuration-order branch from b92540e to d56550a Compare June 4, 2023 08:10
@MatTheCat MatTheCat force-pushed the php-di-configuration-order branch from d56550a to 7e31754 Compare June 15, 2023 15:40
@MatTheCat MatTheCat force-pushed the php-di-configuration-order branch from 7e31754 to c460d9b Compare June 28, 2023 15:04
@MatTheCat MatTheCat force-pushed the php-di-configuration-order branch from c460d9b to 790a24e Compare July 21, 2023 14:05
@MatTheCat MatTheCat force-pushed the php-di-configuration-order branch from 790a24e to 0afc6f0 Compare August 26, 2023 09:05
@MatTheCat MatTheCat force-pushed the php-di-configuration-order branch from 0afc6f0 to 5de7e5a Compare September 4, 2023 09:32
@MatTheCat MatTheCat force-pushed the php-di-configuration-order branch from 5de7e5a to dc2d048 Compare September 6, 2023 14:30
@javiereguiluz javiereguiluz merged commit f7c4870 into symfony:5.4 Sep 6, 2023
@javiereguiluz
Copy link
Member

Thanks Mathieu!

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