We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0203813 commit 542215aCopy full SHA for 542215a
src/Constraint/SequentialArray.php
@@ -77,7 +77,7 @@ class SequentialArray extends Constraint
77
*
78
* @throws InvalidArgumentException
79
*/
80
- public function __construct(int $minItems = 0, int $maxItems = null, $constraint = null, bool $ignoreKeys = false)
+ public function __construct(int $minItems = 0, ?int $maxItems = null, $constraint = null, bool $ignoreKeys = false)
81
{
82
if ($minItems < 0) {
83
throw InvalidArgumentException::create(1, 'non-negative integer');
0 commit comments