Skip to content

Commit aacc508

Browse files
authored
Merge pull request #45 from kidh0/master
fixing "Unparenthesized is deprecated" error
2 parents 87c6fb8 + 8026674 commit aacc508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validator-docs/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected function validateCnh($attribute, $value): bool
125125

126126
$dv2 = $s2 % 11 - ($dv1 > 9 ? 2 : 0);
127127

128-
$check = $dv2 < 0 ? $dv2 + 11 : $dv2 > 9 ? 0 : $dv2;
128+
$check = $dv2 < 0 ? $dv2 + 11 : ($dv2 > 9 ? 0 : $dv2);
129129

130130
return $value[10] == $check;
131131
}

0 commit comments

Comments
 (0)