mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Various phpstan fixes [skip ci]
This commit is contained in:
@@ -79,8 +79,8 @@ class ValidRecurrenceRepetitionValue implements ValidationRule
|
||||
if (2 !== count($parameters)) {
|
||||
return false;
|
||||
}
|
||||
$nthDay = (int) ($parameters[0] ?? 0.0);
|
||||
$dayOfWeek = (int) ($parameters[1] ?? 0.0);
|
||||
$nthDay = (int) $parameters[0];
|
||||
$dayOfWeek = (int) $parameters[1];
|
||||
if ($nthDay < 1 || $nthDay > 5) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user