-
Notifications
You must be signed in to change notification settings - Fork 123
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
Warning on Result constructor #146
Comments
That is quite strange considering, that Are you sure this isn't because of an error on JIRA side, that haven't resulted in exception and popped back up as a warning? |
I recently started getting tons of this very error. We did migrate Jira to a different infrastructure, so it might be related. |
@lookyman , can you please attach some stack trace if possible from place where that warning happens? |
I've added Also there might be an error during JSON decoding of JIRA response that causes I'm OK with removing typehint, but I need few cases where this would help so that test suite can be updated. |
I'll look into it. |
Argument 1 passed to chobie\Jira\Api\Result::__construct() must be of the type array, null given, called in /Jira/Api.php on line 748 and defined
I think this happens in https://github.com/chobie/jira-api-restclient/blob/master/src/Jira/Api.php#L748:
return new Result($json);
The
$json
is not an array because some results are null for example for:Api->search()
called byWalker.php
if nothing is found.The text was updated successfully, but these errors were encountered: