-
Notifications
You must be signed in to change notification settings - Fork 53
Added missing import #33
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
Conversation
@@ -2,6 +2,7 @@ | |||
|
|||
namespace Http\Client\Common\Plugin; | |||
|
|||
use Exception; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflicts with the other exception import. Also, our convention is not to import root namespaces classes, but use them directly.
This might not be that easy though. The Journal only accepts Httplug exceptions, so we need to check the exception type in the rejection handler. @Nyholm you created this part AFAIK. What was the convention? The Journal only collects HTTP related exceptions, right? (So we can show them in the debug toolbar?) Any other exception is out of scope IMO. |
Thanks @GrahamCampbell. So Styleci uses HTTPlug now? 😄 Exciting. Our code is used to test our code? |
Hi, yeh, the link is KnpLabs/php-github-api#409. I was testing the new library on StyleCI (now in production). If we can't get this resolved soonish, I will need to rollback the deployment. |
How does this look now, I've taken off the typehint so we can deal with any eventuality, and added an instanceof check. |
Closing this. There is no bug in your library. The other library is just misusing it, right? |
How does KnpLabs/php-github-api#410 look to you please? Thanks for the cool library btw. :) |
What's in this PR?
Adds a missing import to fix fatal errors.
Why?
Checklist
To Do