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

Allow \Throwable $previous everywhere #34332

Merged

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

@@ -288,7 +288,7 @@ protected function stream(string $view, array $parameters = [], StreamedResponse
*
* @final
*/
protected function createNotFoundException(string $message = 'Not Found', \Exception $previous = null): NotFoundHttpException
protected function createNotFoundException(string $message = 'Not Found', \Throwable $previous = null): NotFoundHttpException
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allowed because @final.

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Nov 12, 2019
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

nicolas-grekas added a commit that referenced this pull request Nov 12, 2019
This PR was merged into the 4.4 branch.

Discussion
----------

Allow \Throwable $previous everywhere

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

59e044d Allow \Throwable $previous everywhere
@nicolas-grekas nicolas-grekas merged commit 59e044d into symfony:4.4 Nov 12, 2019
@fancyweb fancyweb deleted the all-allow-throwable-previous-everywhere branch November 12, 2019 14:57
This was referenced Nov 12, 2019
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.

None yet

3 participants