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

[10.x] Fix findInvoiceOrFail behavior #853

Merged
merged 1 commit into from
Jan 14, 2020
Merged

Conversation

driesvints
Copy link
Member

@driesvints driesvints commented Jan 14, 2020

Because of the changes made to the constructor of the Invoice object recently, the subsequent findInvoiceOrFail method didn't throw the AccessDeniedHttpException anymore and instead threw the new Exception from the constructor. I've now fixed this method to properly throw the AccessDeniedHttpException again.

I've also changed the Exception classes to two dedicated Exception classes which people can type-hint against.

Fixes #851

Because of the changes made to the constructor of the Invoice object recently, the subsequent findInvoiceOrFail method didn't throw the AccessDeniedHttpException anymore and instead threw the new Exception from the constructor. I've now fixed this method to properly throw the AccessDeniedHttpException again.

I've also changed the Exception classes to two dedicated Exception classes which people can type-hint against.
@driesvints driesvints force-pushed the fix-find-invoice-or-fail branch from b4bda86 to 3e60ab2 Compare January 14, 2020 15:52
@driesvints driesvints merged commit 8fe98e3 into 10.0 Jan 14, 2020
@driesvints driesvints deleted the fix-find-invoice-or-fail branch January 14, 2020 16:28
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.

Behaviour for finding an invoice has changed.
1 participant