Skip to content

Commit ffbd245

Browse files
committed
up: fix syntax check error on php8.4
1 parent 8f5f4b2 commit ffbd245

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/php.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: true
1818
matrix:
19-
php: [8.3, 8.1, 8.2]
19+
php: [8.3, 8.1, 8.2, 8.4]
2020
# os: [ubuntu-latest] # , macOS-latest, windows-latest,
2121
coverage: ['none']
2222

src/Validator/LenValidator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class LenValidator extends AbstractValidator
3838
*
3939
* @return static
4040
*/
41-
public static function new(int $min = null, int $max = null): self
41+
public static function new(?int $min = null, ?int $max = null): self
4242
{
4343
return new static($min, $max);
4444
}
@@ -49,7 +49,7 @@ public static function new(int $min = null, int $max = null): self
4949
* @param int|null $min
5050
* @param int|null $max
5151
*/
52-
public function __construct(int $min = null, int $max = null)
52+
public function __construct(?int $min = null, ?int $max = null)
5353
{
5454
$this->min = $min;
5555
$this->max = $max;

0 commit comments

Comments
 (0)