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/google/guzzlehttp/promises/src/RejectionException.php +3 -3 1.2.12 → 1.4.2 View file →
@@ -1,8 +1,8 @@
1 1 <?php
2 2
3 3 declare (strict_types=1);
4 -namespace Dudlewebs\WPMCS\GuzzleHttp\Promise;
4 +namespace Dudlewebs\WPMCS\GCP\GuzzleHttp\Promise;
5 5
6 6 /**
7 7 * A special exception that is thrown when waiting on a rejected promise.
8 8 *
@@ -21,12 +21,12 @@
21 21 $this->reason = $reason;
22 22 $message = 'The promise was rejected';
23 23 if ($description) {
24 24 $message .= ' with reason: ' . $description;
25 - } elseif (is_string($reason) || is_object($reason) && method_exists($reason, '__toString')) {
25 + } elseif (\is_string($reason) || \is_object($reason) && \method_exists($reason, '__toString')) {
26 26 $message .= ' with reason: ' . $this->reason;
27 27 } elseif ($reason instanceof \JsonSerializable) {
28 - $message .= ' with reason: ' . json_encode($this->reason, \JSON_PRETTY_PRINT);
28 + $message .= ' with reason: ' . \json_encode($this->reason, \JSON_PRETTY_PRINT);
29 29 }
30 30 parent::__construct($message);
31 31 }
32 32 /**