Skip to content

Commit

Permalink
Fix PHPStan issues
Browse files Browse the repository at this point in the history
After a few updates in PHPStan, a few errors started to pop up. This
commit fixes those.
  • Loading branch information
henriquemoody committed Nov 26, 2024
1 parent 4fd26e3 commit 775bf05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion library/Rules/Hetu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion library/Transformers/DeprecatedMinAndMax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 775bf05

Please sign in to comment.