← All changes
|
includes/sdk/s3/Aws/Api/ErrorParser/XmlErrorParser.php
+2
-2
1.2.3
→
1.4.2
View file →
| @@ -14,14 +14,14 @@ | ||
| 14 | 14 | class XmlErrorParser extends AbstractErrorParser |
| 15 | 15 | { |
| 16 | 16 | use PayloadParserTrait; |
| 17 | 17 | protected $parser; |
| 18 | - public function __construct(Service $api = null, XmlParser $parser = null) | |
| 18 | + public function __construct(?Service $api = null, ?XmlParser $parser = null) | |
| 19 | 19 | { |
| 20 | 20 | parent::__construct($api); |
| 21 | 21 | $this->parser = $parser ?: new XmlParser(); |
| 22 | 22 | } |
| 23 | - public function __invoke(ResponseInterface $response, CommandInterface $command = null) | |
| 23 | + public function __invoke(ResponseInterface $response, ?CommandInterface $command = null) | |
| 24 | 24 | { |
| 25 | 25 | $code = (string) $response->getStatusCode(); |
| 26 | 26 | $data = ['type' => $code[0] == '4' ? 'client' : 'server', 'request_id' => null, 'code' => null, 'message' => null, 'parsed' => null]; |
| 27 | 27 | $body = $response->getBody(); |