-
Notifications
You must be signed in to change notification settings - Fork 82
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
Class 'ipinfo\ipinfo\Exception' not found #1
Comments
Add in PHPDoc that the function may rise an Exception |
@coderholic @scofield-ua I'll take a look later today and will fix/close this issue. |
@scofield-ua my apologies, I ran into some issues with my computer so I'm having trouble testing this, which may delay me a bit. In the meantime, could you clarify why it's necessary to import Exceptions from multiple locations? |
@jhtimmins no problem, thanks. I think the main idea of this issue is to fix the part where you're throwing global Lines 98 to 100 in 5b360e3
Right now global Exception class is throwing in local namespace: In my project I'm currently have to catch Also, I think, instead of general global |
@jhtimmins, the comment of @scofield-ua is absolutely correct. That's what have been done in my PR #5 |
@scofield-ua Ah of course, yes that makes sense. I actually thought you submitted the PR with multiple exception types, which should have been directed at the PR author. Thanks for the info. @rvalitov Could you explain this docblock, and why it includes two exception types?
It doesn't look like |
@jhtimmins |
This was fixed in commit 6068f65. I've added an |
😊 |
If 6068f65 does not resolve this issue, please let me know and we can reopen. |
Executing getDetails with fake IP produces fatal error.
$ip = '34535'; $IPInfoClient->getDetails($ip);
Add
use \Exception;
into IPInfo.phpThe text was updated successfully, but these errors were encountered: