Skip to content

Use HTTP_NOT_FOUND constant in NotFountHttpException #29812

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

Closed
wants to merge 9 commits into from

Conversation

fgamess
Copy link

@fgamess fgamess commented Jan 8, 2019

Q A
Branch? 3.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

Use Response::HTTP_NOT_FOUND (404) constant (from HttpFoundation component) instead of 404 when providing the status code in the Exception message.

fabpot and others added 7 commits January 6, 2019 16:53
This PR was merged into the 3.4 branch.

Discussion
----------

[fabbot] enable short arrays

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Let's move to short arrays, but let's do it in a smooth way.
This PR enables short arrays for php-cs-fixer, making PRs red when they don't follow the CS.
We should then ask all authors of pending PRs to rebase their PR and apply the CS patch.
This will need some time.
Then, in 1-2 months, we'll be able to move all the code base to short arrays without creating hundred merge conflicts with all pending PRs, hopefully.

Commits
-------

84e72e0 [fabbot] enable short arrays
@fgamess fgamess force-pushed the constant-not-found-exception branch from 2e07f17 to 4b0eb17 Compare January 8, 2019 08:26
@ro0NL
Copy link
Contributor

ro0NL commented Jan 8, 2019

ref #22023

@jakzal
Copy link
Contributor

jakzal commented Jan 8, 2019

Closing for reasons given in the ticket referenced by @ro0NL.

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.

6 participants