Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Nov 18, 2024
1 parent c37b70c commit 04523b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validation/EsValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static function nie(string $check): bool

array_shift($matches);
[$first, $num, $letter] = $matches;
$num = strtr($first, 'XYZ', '012') . $num;
$num = (int)(strtr($first, 'XYZ', '012') . $num);

return $letter === static::$CODES[$num % 23];
}
Expand Down

0 comments on commit 04523b6

Please sign in to comment.