Skip to content

Commit 43614f1

Browse files
committed
Fix implicit nullable parameters deprecation in unit tests
1 parent 542215a commit 43614f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
5252
protected function mockConstraint(
5353
$constraint,
5454
array $invocationRules = [],
55-
array $evaluateParameters = null
55+
?array $evaluateParameters = null
5656
) {
5757
if (!($constraint instanceof Constraint)) {
5858
return $constraint;

tests/Unit/ArrayAssertsTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public function dataProviderArrayHasItemWithFail(): array
450450
private function mockConstraintInstance(
451451
string $className,
452452
array $constructorArguments = [],
453-
array $evaluateArguments = null
453+
?array $evaluateArguments = null
454454
): MockInterface {
455455
$instanceMock = Mockery::mock('overload:' . $className, Constraint::class);
456456

0 commit comments

Comments
 (0)