Skip to content

Replace the use of deprecated getException() by getThrowable() #280

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 1 commit into from

Conversation

jeroennoten
Copy link

@jeroennoten jeroennoten commented Nov 28, 2019

getException() on GetResponseForExceptionEvent are deprecated since Symfony 4.4.

This PR makes sure that getThrowable() is called instead. We use method_exists() to check if this method exists, and otherwise fallback to getException() to keep support for Symfony 4.3 and before.

@Jean85
Copy link
Contributor

Jean85 commented Nov 28, 2019

This is already done in #277, since I've added the deprecation handler.

Closing as duplicate.

@Jean85 Jean85 closed this Nov 28, 2019
@jeroennoten
Copy link
Author

@Jean85, do you have any idea when a new version containing these changes will be released? There have been a lot of commits in the past last two months, without any new released version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants