Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ArrayAssertsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static function arrayHasKeyWith($key, $constraint): ArrayHasKeyWith
public static function assertSequentialArray(
$array,
int $minItems,
int $maxItems = null,
?int $maxItems = null,
$constraint = null,
bool $ignoreKeys = false,
string $message = ''
Expand All @@ -185,7 +185,7 @@ public static function assertSequentialArray(
*/
public static function sequentialArray(
int $minItems,
int $maxItems = null,
?int $maxItems = null,
$constraint = null,
bool $ignoreKeys = false
): SequentialArray {
Expand Down
2 changes: 1 addition & 1 deletion src/Constraint/SequentialArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class SequentialArray extends Constraint
*
* @throws InvalidArgumentException
*/
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)
{
if ($minItems < 0) {
throw InvalidArgumentException::create(1, 'non-negative integer');
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
protected function mockConstraint(
$constraint,
array $invocationRules = [],
array $evaluateParameters = null
?array $evaluateParameters = null
) {
if (!($constraint instanceof Constraint)) {
return $constraint;
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ArrayAssertsTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public function dataProviderArrayHasItemWithFail(): array
private function mockConstraintInstance(
string $className,
array $constructorArguments = [],
array $evaluateArguments = null
?array $evaluateArguments = null
): MockInterface {
$instanceMock = Mockery::mock('overload:' . $className, Constraint::class);

Expand Down
Loading