Upgrade to laravel 11

This commit is contained in:
James Cole
2024-03-17 09:19:01 +01:00
parent 7224f1be6f
commit e3a6e5b788
23 changed files with 577 additions and 911 deletions

View File

@@ -46,7 +46,7 @@ trait DateCalculation
$difference = $today->diffInDays($end);
}
return 0 === $difference ? 1 : $difference;
return (int) (0 === $difference ? 1 : $difference);
}
/**
@@ -63,7 +63,7 @@ trait DateCalculation
$difference = $start->diffInDays($today) + 1;
}
return $difference;
return (int) $difference;
}
protected function calculateStep(Carbon $start, Carbon $end): string