Skip to content

Commit 542215a

Browse files
bytestreamPhrozenByte
authored andcommitted
Change maxItems parameter to nullable integer
1 parent 0203813 commit 542215a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Constraint/SequentialArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class SequentialArray extends Constraint
7777
*
7878
* @throws InvalidArgumentException
7979
*/
80-
public function __construct(int $minItems = 0, int $maxItems = null, $constraint = null, bool $ignoreKeys = false)
80+
public function __construct(int $minItems = 0, ?int $maxItems = null, $constraint = null, bool $ignoreKeys = false)
8181
{
8282
if ($minItems < 0) {
8383
throw InvalidArgumentException::create(1, 'non-negative integer');

0 commit comments

Comments
 (0)