Skip to content

Commit c88a55a

Browse files
committed
refactor: use null coalesce to assign default value
1 parent 5672d19 commit c88a55a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Constraints/BaseTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class BaseTestCase extends VeryBaseTestCase
3030
*/
3131
public function testInvalidCases(string $input, string $schema, ?int $checkMode = Constraint::CHECK_MODE_NORMAL, array $errors = []): void
3232
{
33-
$checkMode = $checkMode === null ? Constraint::CHECK_MODE_NORMAL : $checkMode;
33+
$checkMode = $checkMode ?? Constraint::CHECK_MODE_NORMAL;
3434
if ($this->validateSchema) {
3535
$checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA;
3636
}

0 commit comments

Comments
 (0)