PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.17.0
GiveWP – Donation Plugin and Fundraising Platform v4.17.0
4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 All 256 releases
← 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;