From c56bb86b6156c4e910ef87a13528fcf9a8ba3fce Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 19 Feb 2023 12:07:58 -0700 Subject: [PATCH] php 8.2 fixes --- system/src/Grav/Common/Utils.php | 4 ++-- system/src/Grav/Console/Cli/LogViewerCommand.php | 2 +- system/src/Grav/Console/Gpm/InstallCommand.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system/src/Grav/Common/Utils.php b/system/src/Grav/Common/Utils.php index 078a49a7e..0b6309c34 100644 --- a/system/src/Grav/Common/Utils.php +++ b/system/src/Grav/Common/Utils.php @@ -1145,9 +1145,9 @@ abstract class Utils $offset_prefix = $offset < 0 ? '-' : '+'; $offset_formatted = gmdate('H:i', abs($offset)); - $pretty_offset = "UTC${offset_prefix}${offset_formatted}"; + $pretty_offset = "UTC{$offset_prefix}{$offset_formatted}"; - $timezone_list[$timezone] = "(${pretty_offset}) " . str_replace('_', ' ', $timezone); + $timezone_list[$timezone] = "({$pretty_offset}) " . str_replace('_', ' ', $timezone); } return $timezone_list; diff --git a/system/src/Grav/Console/Cli/LogViewerCommand.php b/system/src/Grav/Console/Cli/LogViewerCommand.php index 8c26af24c..107ebf79b 100644 --- a/system/src/Grav/Console/Cli/LogViewerCommand.php +++ b/system/src/Grav/Console/Cli/LogViewerCommand.php @@ -82,7 +82,7 @@ class LogViewerCommand extends GravCommand if ($log['trace'] && $verbose) { $output .= " {$log['message']}\n"; foreach ((array) $log['trace'] as $index => $tracerow) { - $output .= "{$index}${tracerow}\n"; + $output .= "{$index}{$tracerow}\n"; } } else { $output .= " {$log['message']}"; diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index f16b5be5f..a45c2906b 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -317,7 +317,7 @@ class InstallCommand extends GpmCommand $questionNoun = 'packages'; } - $question = new ConfirmationQuestion("${questionAction} {$questionArticle} {$questionNoun}? [Y|n] ", true); + $question = new ConfirmationQuestion("{$questionAction} {$questionArticle} {$questionNoun}? [Y|n] ", true); $answer = $this->all_yes ? true : $io->askQuestion($question); if ($answer) {