2222 */
2323class Client implements ClientInterface
2424{
25- /** @var array */
25+ /** @var array<mixed>|null */
2626 private $ soapOptions ;
2727
2828 /** @var \SoapHeader[]|null */
@@ -50,6 +50,7 @@ public function __construct(
5050 private readonly LoggerInterface $ logger ,
5151 private readonly string $ code ,
5252 private ?string $ wsdl ,
53+ /** @var array<mixed> */
5354 private array $ options = [],
5455 ) {
5556 }
@@ -167,9 +168,6 @@ public function setLastResponseHeaders(?string $lastResponseHeaders): void
167168 $ this ->lastResponseHeaders = $ lastResponseHeaders ;
168169 }
169170
170- /**
171- * @return bool|mixed
172- */
173171 public function call (string $ method , array $ input = []): mixed
174172 {
175173 $ this ->initializeSoapClient ();
@@ -187,6 +185,8 @@ public function call(string $method, array $input = []): mixed
187185 }
188186
189187 /**
188+ * @param array<mixed> $input
189+ *
190190 * @return bool|mixed
191191 */
192192 protected function doSoapCall (string $ method , array $ input = []): mixed
@@ -196,7 +196,7 @@ protected function doSoapCall(string $method, array $input = []): mixed
196196 }
197197 try {
198198 $ result = $ this ->getSoapClient ()->__soapCall ($ method , $ input , $ this ->getSoapOptions (), $ this ->getSoapHeaders ());
199- } /* @noinspection PhpRedundantCatchClauseInspection */ catch (\SoapFault $ e ) {
199+ } catch (\SoapFault $ e ) {
200200 $ this ->getLastRequestTrace ();
201201 $ this ->getLogger ()->alert (
202202 \sprintf ("Soap call '%s' on '%s' failed : %s " , $ method , $ this ->getWsdl (), $ e ->getMessage ()),
@@ -239,6 +239,14 @@ protected function getLastRequestTrace(): void
239239 }
240240 }
241241
242+ /**
243+ * @return array{
244+ * 'LastRequest': ?string,
245+ * 'LastRequestHeaders': ?string,
246+ * 'LastResponse': ?string,
247+ * 'LastResponseHeaders': ?string
248+ * }
249+ */
242250 protected function getLastRequestTraceArray (): array
243251 {
244252 return [
0 commit comments