mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
php 8.2 fixes
This commit is contained in:
parent
ea010f19f0
commit
c56bb86b61
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ class LogViewerCommand extends GravCommand
|
|||
if ($log['trace'] && $verbose) {
|
||||
$output .= " <white>{$log['message']}</white>\n";
|
||||
foreach ((array) $log['trace'] as $index => $tracerow) {
|
||||
$output .= "<white>{$index}</white>${tracerow}\n";
|
||||
$output .= "<white>{$index}</white>{$tracerow}\n";
|
||||
}
|
||||
} else {
|
||||
$output .= " {$log['message']}";
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user