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/Framework/PaymentGateways/Commands/PaymentCommand.php +4 -2 4.16.7.1 → 4.17.0 View file →
@@ -24,21 +24,23 @@
24 24 /**
25 25 * @param string|null $gatewayTransactionId
26 26 *
27 27 * @return static
28 + * @since 4.17.0 Declare the nullable parameter explicitly.
28 29 */
29 - public static function make(string $gatewayTransactionId = null): PaymentCommand
30 + public static function make(?string $gatewayTransactionId = null): PaymentCommand
30 31 {
31 32 return new static($gatewayTransactionId);
32 33 }
33 34
34 35 /**
36 + * @since 4.17.0 Declare the nullable parameter explicitly.
35 37 * @since 2.18.0
36 38 * @since 2.23.1 Make constructor final to avoid unsafe usage of `new static()`.
37 39 *
38 40 * @param string|null $gatewayTransactionId
39 41 */
40 - final public function __construct(string $gatewayTransactionId = null)
42 + final public function __construct(?string $gatewayTransactionId = null)
41 43 {
42 44 $this->gatewayTransactionId = $gatewayTransactionId;
43 45 }
44 46