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 aa3e018 commit ae952f8Copy full SHA for ae952f8
tests/Constraints/BaseTestCase.php
@@ -52,7 +52,7 @@ public function testInvalidCases(string $input, string $schema, ?int $checkMode
52
*/
53
public function testInvalidCasesUsingAssoc($input, $schema, $checkMode = Constraint::CHECK_MODE_TYPE_CAST, $errors = []): void
54
{
55
- $checkMode = $checkMode === null ? Constraint::CHECK_MODE_TYPE_CAST : $checkMode;
+ $checkMode = $checkMode ?? Constraint::CHECK_MODE_TYPE_CAST;
56
if ($this->validateSchema) {
57
$checkMode |= Constraint::CHECK_MODE_VALIDATE_SCHEMA;
58
}
0 commit comments