PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | vendor_prefixed/guzzlehttp/promises/src/RejectionException.php +4 -3 18.3 → trunk View file →
@@ -1,6 +1,7 @@
1 1 <?php
2 2
3 +declare (strict_types=1);
3 4 namespace YoastSEO_Vendor\GuzzleHttp\Promise;
4 5
5 6 /**
6 7 * A special exception that is thrown when waiting on a rejected promise.
@@ -11,12 +12,12 @@
11 12 {
12 13 /** @var mixed Rejection reason. */
13 14 private $reason;
14 15 /**
15 - * @param mixed $reason Rejection reason.
16 - * @param string $description Optional description
16 + * @param mixed $reason Rejection reason.
17 + * @param string|null $description Optional description.
17 18 */
18 - public function __construct($reason, $description = null)
19 + public function __construct($reason, ?string $description = null)
19 20 {
20 21 $this->reason = $reason;
21 22 $message = 'The promise was rejected';
22 23 if ($description) {