← 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 | |