diff --git a/library/Rules/Hetu.php b/library/Rules/Hetu.php index b31bf39e8..8d50ec479 100644 --- a/library/Rules/Hetu.php +++ b/library/Rules/Hetu.php @@ -50,7 +50,7 @@ protected function isValid(mixed $input): bool return false; } - $id = $day . $month . $year . $individualNumber; + $id = (int) ($day . $month . $year . $individualNumber); $validationKeys = str_split('0123456789ABCDEFHJKLMNPRSTUVWXY'); return $validationKeys[$id % 31] === $controlCharacter; diff --git a/library/Transformers/DeprecatedMinAndMax.php b/library/Transformers/DeprecatedMinAndMax.php index e5159f171..3115922f5 100644 --- a/library/Transformers/DeprecatedMinAndMax.php +++ b/library/Transformers/DeprecatedMinAndMax.php @@ -34,7 +34,6 @@ public function transform(RuleSpec $ruleSpec): RuleSpec return $this->next->transform($ruleSpec); } - // @phpstan-ignore-next-line $name = match ($ruleSpec->name) { 'min' => 'greaterThanOrEqual', 'max' => 'lessThanOrEqual',