Skip to content

Removed unnecessary use statement #4445

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
Nov 20, 2014

Conversation

hasumedic
Copy link

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets

Found a rather unnecessary "use" statement in the code example in the "debugging" cookbook. Makes it difficult to spot the changes between one code example and the following one and know what changed.

@Nek-
Copy link
Contributor

Nek- commented Nov 11, 2014

👎 actually the Request is used just after the use statement. So it's needed after autoload...

@hasumedic
Copy link
Author

Good. Don't we need then to add it to the first code example?

@xabbuh
Copy link
Member

xabbuh commented Nov 11, 2014

I think it's okay to remove it here. If you have a look at the file contents of the Symfony Standard Edition, you'll see that the use statements are placed in the part that we don't show (indicated by the // ... placeholders).

@wouterj
Copy link
Member

wouterj commented Nov 11, 2014

I agree with @xabbuh, +1

@weaverryan
Copy link
Member

Yep, I agree too - because we're trying to only show the details you need to change, not everything. It's not perfect, but it makes sense to not show this here, since we're not changing or touching (or even really looking at) the Request line this relates to. Thanks @hasumedic!

@weaverryan weaverryan merged commit 6a9162b into symfony:2.3 Nov 20, 2014
weaverryan added a commit that referenced this pull request Nov 20, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

Removed unnecessary use statement

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Found a rather unnecessary "use" statement in the code example in the "debugging" cookbook. Makes it difficult to spot the changes between one code example and the following one and know what changed.

Commits
-------

6a9162b Removed unnecessary use statement in code example in the debugging cookbook
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.

5 participants