Skip to content

Commit

Permalink
Update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
john committed Sep 9, 2018
1 parent 21f8e2c commit 2976507
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
parameters:
ignoreErrors:
- '#stream_context_set_option invoked with 2 parameters, 4#'
- '#GusApi\\Client\\SoapClient does not have a constructor#'
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#stream_context_set_option invoked with 2 parameters, 4#'
- '#GusApi\\Client\\SoapClient does not have a constructor#'
- '#Parameter \#1 $haystack of function stristr expects string, string|false given.#'
2 changes: 1 addition & 1 deletion src/GusApi/Client/GusApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected function call(string $functionName, $arguments, ?string $sid = null)
'user_agent' => 'PHP GusApi',
]);

return $this->soapClient->__soapCall($functionName, $arguments, null, $soapHeaders);
return $this->soapClient->__soapCall($functionName, $arguments, [], $soapHeaders);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Client/GusApiClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ protected function expectSoapCall(string $action, array $arguments, $result, boo
$this->soap
->expects($this->once())
->method('__soapCall')
->with($action, $arguments, null, $headers)
->with($action, $arguments, [], $headers)
->willReturn($result);
}
}

0 comments on commit 2976507

Please sign in to comment.