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

@@ -120,4 +120,14 @@ class RemoteUserProvider implements UserProvider
throw new FireflyException(sprintf('C) Did not implement %s', __METHOD__));
}
/**
* @inheritDoc
*/
#[\Override] public function rehashPasswordIfRequired(Authenticatable $user, array $credentials, bool $force = false)
{
app('log')->debug(sprintf('Now at %s', __METHOD__));
throw new FireflyException(sprintf('Did not implement %s', __METHOD__));
}
}

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

View File

@@ -304,7 +304,7 @@ class Navigation
{
$endOfMonth = $date->copy()->endOfMonth();
return $date->diffInDays($endOfMonth);
return (int) $date->diffInDays($endOfMonth);
}
public function diffInPeriods(string $period, int $skip, Carbon $beginning, Carbon $end): int