Skip to content

Multiple PHP class per file not allowed #14330

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
Oct 7, 2020

Conversation

ybenhssaien
Copy link
Contributor

Since AnnotationFileLoader from Routing component parses and loads only one class per file while ignoring others class if declared in the same file, it is good to let know people about this behaviour to not be surprised.

Since `AnnotationFileLoader` from `Routing` component parses and loads only one class per file while ignoring others class if declared in the same file, it is good to let know people about this behaviour to not be surprised.
@javiereguiluz
Copy link
Member

Youssef thanks for this contribution. In practice most people won't face this (because "everybody" uses a class per file) but it's important to debug tricky issues. While merging we lowered the position of this a bit to not interrupt reading flow.

@javiereguiluz javiereguiluz merged commit f0b0134 into symfony:4.4 Oct 7, 2020
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