Add php8 code.

This commit is contained in:
James Cole 2021-09-25 16:25:03 +02:00
parent 5df04cb5ff
commit 57bf78489b
No known key found for this signature in database
GPG Key ID: BDE6667570EADBD5

View File

@ -89,7 +89,7 @@ abstract class Controller extends BaseController
app('view')->share('FF_IS_BETA', $isBeta);
$this->middleware(
function ($request, $next) {
function ($request, $next): mixed {
$locale = app('steam')->getLocale();
// translations for specific strings:
$this->monthFormat = (string)trans('config.month', [], $locale);