diff --git a/app/Api/V1/Controllers/Search/TransactionController.php b/app/Api/V1/Controllers/Search/TransactionController.php index 2fcdd52b65..5ac75b84cd 100644 --- a/app/Api/V1/Controllers/Search/TransactionController.php +++ b/app/Api/V1/Controllers/Search/TransactionController.php @@ -66,7 +66,7 @@ final class TransactionController extends Controller $internalRef = (string) $request->attributes->get('internal_reference'); $notes = (string) $request->attributes->get('notes'); $description = (string) $request->attributes->get('description'); - Log::debug(sprintf('Include deleted? %s', var_export($includeDeleted, true))); + Log::debug(sprintf('Include deleted? %s', var_export(value: $includeDeleted, return: true))); if ('' !== $externalId) { $count += $this->repository->countByMeta('external_id', $externalId, $includeDeleted); Log::debug(sprintf('Search for transactions with external_identifier "%s", count is now %d', $externalId, $count)); diff --git a/app/Console/Commands/Upgrade/UpgradesToGroups.php b/app/Console/Commands/Upgrade/UpgradesToGroups.php index d7f57fd69c..a04dfd35ee 100644 --- a/app/Console/Commands/Upgrade/UpgradesToGroups.php +++ b/app/Console/Commands/Upgrade/UpgradesToGroups.php @@ -88,8 +88,8 @@ class UpgradesToGroups extends Command $set = $journal->transactions->filter(static function (Transaction $subject) use ($transaction): bool { $amount = -(float) $transaction->amount === (float) $subject->amount; // intentional float $identifier = $transaction->identifier === $subject->identifier; - Log::debug(sprintf('Amount the same? %s', var_export($amount, true))); - Log::debug(sprintf('ID the same? %s', var_export($identifier, true))); + Log::debug(sprintf('Amount the same? %s', var_export($amount, return: true))); + Log::debug(sprintf('ID the same? %s', var_export($identifier, return: true))); return $amount && $identifier; }); diff --git a/app/Http/Controllers/DebugController.php b/app/Http/Controllers/DebugController.php index 0dec2c4cfe..b42a1402a1 100644 --- a/app/Http/Controllers/DebugController.php +++ b/app/Http/Controllers/DebugController.php @@ -302,7 +302,7 @@ final class DebugController extends Controller } return [ - 'debug' => var_export(config('app.debug'), true), + 'debug' => var_export(config('app.debug'), return: true), 'audit_log_channel' => implode(', ', config('logging.channels.audit.channels')), 'default_language' => (string) config('firefly.default_language'), 'default_locale' => (string) config('firefly.default_locale'), diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 1ebd16cd29..de4bc902e3 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -106,7 +106,7 @@ final class HomeController extends Controller } $request->session()->put('is_custom_range', $isCustomRange); - Log::debug(sprintf('Set is_custom_range to %s', var_export($isCustomRange, true))); + Log::debug(sprintf('Set is_custom_range to %s', var_export($isCustomRange, return: true))); $request->session()->put('start', $start); Log::debug(sprintf('Set start to %s', $start->format('Y-m-d H:i:s'))); $request->session()->put('end', $end); diff --git a/app/Http/Controllers/JavascriptController.php b/app/Http/Controllers/JavascriptController.php index 1b85c7b770..9a99e3b41c 100644 --- a/app/Http/Controllers/JavascriptController.php +++ b/app/Http/Controllers/JavascriptController.php @@ -116,7 +116,7 @@ final class JavascriptController extends Controller 'currencyCode' => $currency->code, 'currencySymbol' => $currency->symbol, 'accountingLocaleInfo' => $accounting, - 'anonymous' => var_export(Steam::anonymous(), true), + 'anonymous' => var_export(Steam::anonymous(), return: true), 'language' => $lang, 'dateRangeTitle' => $dateRange['title'], 'locale' => $locale, diff --git a/app/Http/Controllers/Json/IntroController.php b/app/Http/Controllers/Json/IntroController.php index 5458f465c3..ded52ff542 100644 --- a/app/Http/Controllers/Json/IntroController.php +++ b/app/Http/Controllers/Json/IntroController.php @@ -82,7 +82,7 @@ final class IntroController extends Controller Log::debug('Elements is array', $elements); Log::debug('Keys is', array_keys($elements)); - Log::debug(sprintf('Keys has "outro": %s', var_export($hasStep, true))); + Log::debug(sprintf('Keys has "outro": %s', var_export($hasStep, return: true))); return $hasStep; }