← All changes
|
includes/sdk/s3/GuzzleHttp/Promise/RejectionException.php
+4
-3
1.2.4
→
1.4.1
View file →
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +declare (strict_types=1); | |
| 3 | 4 | namespace Dudlewebs\WPMCS\s3\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) { |