Skip to content

Commit ae952f8

Browse files
committed
refactor: use null coalescing operator
1 parent aa3e018 commit ae952f8

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
@@ -52,7 +52,7 @@ public function testInvalidCases(string $input, string $schema, ?int $checkMode
5252
*/
5353
public function testInvalidCasesUsingAssoc($input, $schema, $checkMode = Constraint::CHECK_MODE_TYPE_CAST, $errors = []): void
5454
{
55-
$checkMode = $checkMode === null ? Constraint::CHECK_MODE_TYPE_CAST : $checkMode;
55+
$checkMode = $checkMode ?? Constraint::CHECK_MODE_TYPE_CAST;
5656
if ($this->validateSchema) {
5757
$checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA;
5858
}

0 commit comments

Comments
 (0)