Repository navigation
Added missing import - #33
GrahamCampbell wants to merge 2 commits into
Conversation
|
|
||
| namespace Http\Client\Common\Plugin; | ||
|
|
||
| use Exception; |
There was a problem hiding this comment.
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