| @@ -49,11 +49,12 @@ | ||
| 49 | 49 | return $value; |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | + * @since 4.17.0 Declare the nullable parameter explicitly. | |
| 53 | 54 | * @since 3.0.0 |
| 54 | 55 | */ |
| 55 | - public static function fromString(string $options = null): ValidationRule | |
| 56 | + public static function fromString(?string $options = null): ValidationRule | |
| 56 | 57 | { |
| 57 | 58 | if (!is_numeric($options)) { |
| 58 | 59 | Config::throwInvalidArgumentException('Size validation rule requires a numeric value'); |
| 59 | 60 | } |