PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/s3/Aws/Api/ErrorParser/XmlErrorParser.php +2 -2 1.2.5 → 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();