Fix PHP 8 related errors.

This commit is contained in:
James Cole
2020-12-22 17:16:55 +01:00
parent e9cab814d3
commit 7530effcaa
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ trait GetConfigurationData
*/
protected function getDateRangeConfig(): array // get configuration + get preferences.
{
$viewRange = app('preferences')->get('viewRange', '1M')->data;
$viewRange = (string) app('preferences')->get('viewRange', '1M')->data;
/** @var Carbon $start */
$start = session('start');
/** @var Carbon $end */