-
Notifications
You must be signed in to change notification settings - Fork 5
Improve error message #16
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
base: master
Are you sure you want to change the base?
Conversation
| const CONF_RECOVERABLE = 'recoverable'; | ||
|
|
||
| const CONF_NO_RESULTS = 'noResults'; | ||
| const CONF_NO_RESULTS = 'no_results'; |
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.
Hi @BertrandF23 ,
This is potentially a breaking change on the framework for other user of the bundle.
I would recommend not to do it as part of this pull request.
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.
Ok, was split and put in another pull request :-).
| */ | ||
| public function keyExists(array $obj, $key) | ||
| { | ||
| if (!is_string($key) and !is_integer($key)) { |
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.
@BertrandF23 we should add/update the tests for this change
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.
Tests are done for keyExists, testing true or false result, but also exceptions due to wrong type of parameters.
Uh oh!
There was an error while loading. Please reload this page.