Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Conversation

@danbarker
Copy link
Contributor

Fixes #21


if ($response->hasErrors()) {
throw new BadApiRequestException($response->getErrors());
if ($response->getReturnCode() == 404) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check if the return code is a string or an int? If it's an int might be nicer to have strict check here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your wish is my command

Copy link
Collaborator

@mickadoo mickadoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion for type check, but otherwise seems fine

@marczahn marczahn merged commit e8a61bb into loopline-systems:develop Nov 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getLead doesn't throw a ResourceNotFoundException

3 participants