PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
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 1.2.9 All 35 releases
← All changes | includes/sdk/s3/Aws/RetryMiddleware.php +2 -2 1.2.7 → 1.4.1 View file →
@@ -65,9 +65,9 @@
65 65 $retryCurlErrors = [];
66 66 if (\extension_loaded('curl')) {
67 67 $retryCurlErrors[\CURLE_RECV_ERROR] = \true;
68 68 }
69 - return function ($retries, CommandInterface $command, RequestInterface $request, ResultInterface $result = null, $error = null) use($maxRetries, $retryCurlErrors, $extraConfig) {
69 + return function ($retries, CommandInterface $command, RequestInterface $request, ?ResultInterface $result = null, $error = null) use($maxRetries, $retryCurlErrors, $extraConfig) {
70 70 // Allow command-level options to override this value
71 71 $maxRetries = null !== $command['@retries'] ? $command['@retries'] : $maxRetries;
72 72 $isRetryable = self::isRetryable($result, $error, $retryCurlErrors, $extraConfig);
73 73 if ($retries >= $maxRetries) {
@@ -150,9 +150,9 @@
150 150 * @param RequestInterface $request
151 151 *
152 152 * @return PromiseInterface
153 153 */
154 - public function __invoke(CommandInterface $command, RequestInterface $request = null)
154 + public function __invoke(CommandInterface $command, ?RequestInterface $request = null)
155 155 {
156 156 $retries = 0;
157 157 $requestStats = [];
158 158 $monitoringEvents = [];