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

Fix wrong type error if the error in some cases #209

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

Nek-
Copy link
Contributor

@Nek- Nek- commented May 25, 2020

Problem

The raised error may be a throwable since the user is supposed to add its custom code with handlers. But since this is type hinted Exception, the real failure will be hidden by this new TypeError.

Solution

Accept Throwable instead.

Fixes #208

@Nek- Nek- requested a review from a team as a code owner May 25, 2020 19:26
Problem
-------

The raised error may be a throwable since the user is supposed to add its custom
code with handlers. But since this is type hinted Exception, the real failure will
be hidden by this new TypeError.

Solution
--------

Accept Throwable instead.

Fixes Sylius#208
@GSadee GSadee merged commit 4d79cbd into Sylius:master Jan 7, 2021
@GSadee
Copy link
Member

GSadee commented Jan 7, 2021

Thanks, Maxime! 🥇

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.

RufundUnitsHandler fails on PHP error somewhere in the process
2 participants