|
27 | 27 | abstract class AbstractEndpoint implements EndpointInterface |
28 | 28 | { |
29 | 29 | /** |
30 | | - * @var IgnoreLoggersOnExceptionClosure |
| 30 | + * @var IgnoreLoggersOnExceptionClosure|null |
31 | 31 | */ |
32 | 32 | private Closure|null $shouldIgnoreLoggersOnException = null; |
33 | 33 |
|
@@ -142,7 +142,7 @@ final protected function sendGet( |
142 | 142 | final protected function sendPost( |
143 | 143 | string $responseClass, |
144 | 144 | UriInterface $uri, |
145 | | - OptionsInterface|StreamInterface|string $body = null, |
| 145 | + OptionsInterface|StreamInterface|string|null $body = null, |
146 | 146 | array $headers = [], |
147 | 147 | ?int $expectedResponseStatusCode = null, |
148 | 148 | ): AbstractResponse { |
@@ -177,10 +177,10 @@ final protected function sendPost( |
177 | 177 | final protected function sendPut( |
178 | 178 | string $responseClass, |
179 | 179 | UriInterface $uri, |
180 | | - OptionsInterface|StreamInterface|string $body = null, |
| 180 | + OptionsInterface|StreamInterface|string|null $body = null, |
181 | 181 | array $headers = [], |
182 | 182 | ?int $expectedResponseStatusCode = null, |
183 | | - Closure $shouldIgnoreLoggersOnError = null, |
| 183 | + ?Closure $shouldIgnoreLoggersOnError = null, |
184 | 184 | ): AbstractResponse { |
185 | 185 | $request = $this->factory() |
186 | 186 | ->request() |
@@ -215,7 +215,7 @@ final protected function sendPut( |
215 | 215 | final protected function sendDelete( |
216 | 216 | string $responseClass, |
217 | 217 | UriInterface $uri, |
218 | | - OptionsInterface|StreamInterface|string $body = null, |
| 218 | + OptionsInterface|StreamInterface|string|null $body = null, |
219 | 219 | array $headers = [], |
220 | 220 | ?int $expectedResponseStatusCode = null, |
221 | 221 | ): AbstractResponse { |
@@ -255,7 +255,7 @@ final protected function sendFake( |
255 | 255 | ResponseInterface $response, |
256 | 256 | string $responseClass, |
257 | 257 | UriInterface $uri, |
258 | | - OptionsInterface|StreamInterface|string $body = null, |
| 258 | + OptionsInterface|StreamInterface|string|null $body = null, |
259 | 259 | array $headers = [], |
260 | 260 | ?int $expectedResponseStatusCode = null, |
261 | 261 | ): AbstractResponse { |
|
0 commit comments