-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactored to comply with PSR-4 #15
base: master
Are you sure you want to change the base?
Conversation
…e_once, require, and include_once statements. Added PHPUnit 9 and cleaned up test cases so they comply with PSR-4 also.
@@ -61,7 +61,7 @@ public function __construct($apiKey, Context $context, Host $host = null, $apiVe | |||
$this->host = $host; | |||
} | |||
if ($apiVersion == null) { | |||
$this->apiVersion = '5.0'; | |||
$this->apiVersion = '5.3'; |
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.
@mstralka Tested this and unfortunately nameapi do not have a /5.3/ endpoint and the requests return 404.
You should revert it back to "5.0".
You can find a similar commit from 2017: f2ff68f
Edit: Solved it by changing the host from rc50-api.nameapi.org to rc53-api.nameapi.org so you should probably disregard this comment.
…ied the PersonNameParserService to use these functions because the API throws a 500 exception if the payload has attributes with NULL values.
I refactored the package names and fixed the unit tests so it will comply with PSR-4 naming. This fixes #13