diff --git a/phpstan.neon b/phpstan.neon index d8cac0d..fe6936b 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,4 +1,6 @@ parameters: - ignoreErrors: - - '#stream_context_set_option invoked with 2 parameters, 4#' - - '#GusApi\\Client\\SoapClient does not have a constructor#' \ No newline at end of file + 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.#' \ No newline at end of file diff --git a/src/GusApi/Client/GusApiClient.php b/src/GusApi/Client/GusApiClient.php index 8defaf9..14e4fd3 100644 --- a/src/GusApi/Client/GusApiClient.php +++ b/src/GusApi/Client/GusApiClient.php @@ -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); } /** diff --git a/tests/Client/GusApiClientTest.php b/tests/Client/GusApiClientTest.php index f4cb1ef..6deaff1 100644 --- a/tests/Client/GusApiClientTest.php +++ b/tests/Client/GusApiClientTest.php @@ -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); } }