Skip to content

Commit 0203813

Browse files
bytestreamPhrozenByte
authored andcommitted
Fix Implicitly marking parameter $maxItems as nullable is deprecated
1 parent 841db9a commit 0203813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArrayAssertsTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static function arrayHasKeyWith($key, $constraint): ArrayHasKeyWith
158158
public static function assertSequentialArray(
159159
$array,
160160
int $minItems,
161-
int $maxItems = null,
161+
?int $maxItems = null,
162162
$constraint = null,
163163
bool $ignoreKeys = false,
164164
string $message = ''
@@ -185,7 +185,7 @@ public static function assertSequentialArray(
185185
*/
186186
public static function sequentialArray(
187187
int $minItems,
188-
int $maxItems = null,
188+
?int $maxItems = null,
189189
$constraint = null,
190190
bool $ignoreKeys = false
191191
): SequentialArray {

0 commit comments

Comments
 (0)