From 04523b6a016cfb36b7e88e4c28b15d71ef8b3141 Mon Sep 17 00:00:00 2001 From: mscherer Date: Mon, 18 Nov 2024 23:27:42 +0100 Subject: [PATCH] Fix PHPStan --- src/Validation/EsValidation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validation/EsValidation.php b/src/Validation/EsValidation.php index 015e2a0..8dd69af 100644 --- a/src/Validation/EsValidation.php +++ b/src/Validation/EsValidation.php @@ -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]; }