← All changes
|
src/API/REST/V3/Routes/Subscriptions/Exceptions/SubscriptionValidationException.php
+2
-1
4.16.7.1
→
4.17.0
View file →
| @@ -19,8 +19,9 @@ | ||
| 19 | 19 | */ |
| 20 | 20 | private $statusCode; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | + * @since 4.17.0 Declare the nullable parameter explicitly. | |
| 23 | 24 | * @since 4.8.0 |
| 24 | 25 | * |
| 25 | 26 | * @param string $message |
| 26 | 27 | * @param string $errorCode |
| @@ -26,9 +27,9 @@ | ||
| 26 | 27 | * @param string $errorCode |
| 27 | 28 | * @param int $statusCode |
| 28 | 29 | * @param Exception|null $previous |
| 29 | 30 | */ |
| 30 | - public function __construct(string $message, string $errorCode, int $statusCode = 400, Exception $previous = null) | |
| 31 | + public function __construct(string $message, string $errorCode, int $statusCode = 400, ?Exception $previous = null) | |
| 31 | 32 | { |
| 32 | 33 | parent::__construct($message, 0, $previous); |
| 33 | 34 | $this->errorCode = $errorCode; |
| 34 | 35 | $this->statusCode = $statusCode; |