@@ -29,7 +29,7 @@ class BaseClient
2929 protected ClientInterface $ transporter ;
3030
3131 /**
32- * @param array<string, null |int|list<int| string>|string > $headers
32+ * @param array<string, string |int|list<string|int>|null > $headers
3333 */
3434 public function __construct (
3535 protected array $ headers ,
@@ -45,13 +45,13 @@ public function __construct(
4545 }
4646
4747 /**
48- * @param list<mixed>|string $path
48+ * @param string| list<mixed> $path
4949 * @param array<string, mixed> $query
5050 * @param array<string, mixed> $headers
5151 */
5252 public function request (
5353 string $ method ,
54- array | string $ path ,
54+ string | array $ path ,
5555 array $ query = [],
5656 array $ headers = [],
5757 mixed $ body = null ,
@@ -88,27 +88,27 @@ protected function authHeaders(): array
8888 }
8989
9090 /**
91- * @param list<string>|string $path
91+ * @param string| list<string> $path
9292 * @param array<string, mixed> $query
93- * @param array<string, null |int|list<int| string>|string > $headers
94- * @param null| array{
95- * timeout?: null| float,
96- * maxRetries?: null| int,
97- * initialRetryDelay?: null| float,
98- * maxRetryDelay?: null| float,
99- * extraHeaders?: null| list<string>,
100- * extraQueryParams?: null| list<string>,
101- * extraBodyParams?: null| list<string>,
102- * }|RequestOptions $opts
93+ * @param array<string, string |int|list<string|int>|null > $headers
94+ * @param array{
95+ * timeout?: float|null ,
96+ * maxRetries?: int|null ,
97+ * initialRetryDelay?: float|null ,
98+ * maxRetryDelay?: float|null ,
99+ * extraHeaders?: list<string>|null ,
100+ * extraQueryParams?: list<string>|null ,
101+ * extraBodyParams?: list<string>|null ,
102+ * }|RequestOptions|null $opts
103103 *
104104 * @return array{RequestInterface, RequestOptions}
105105 */
106106 protected function buildRequest (
107107 string $ method ,
108- array | string $ path ,
108+ string | array $ path ,
109109 array $ query ,
110110 array $ headers ,
111- null | array |RequestOptions $ opts ,
111+ array |RequestOptions | null $ opts ,
112112 ): array {
113113 $ opts = [...$ this ->options ->__serialize (), ...RequestOptions::parse ($ opts )->__serialize ()];
114114 $ options = new RequestOptions (...$ opts );
@@ -119,7 +119,7 @@ protected function buildRequest(
119119 $ mergedQuery = array_merge_recursive ($ query , $ options ->extraQueryParams );
120120 $ uri = Util::joinUri ($ this ->baseUrl , path: $ parsedPath , query: $ mergedQuery );
121121
122- /** @var array<string, list<string>|string > $mergedHeaders */
122+ /** @var array<string, string | list<string>> $mergedHeaders */
123123 $ mergedHeaders = [...$ this ->headers ,
124124 ...$ this ->authHeaders (),
125125 ...$ headers ,
@@ -146,9 +146,9 @@ protected function followRedirect(
146146 }
147147
148148 /**
149- * @param null| array<string, mixed>|bool|float|int| resource|string |\Traversable<
149+ * @param bool|int|float|string| array<string, mixed>|resource|\Traversable<
150150 * mixed
151- * > $data
151+ * >|null $data
152152 */
153153 protected function sendRequest (
154154 RequestInterface $ req ,
0 commit comments