From 7b1bcf778903d7efb4fcca9c19965d9b0fe9d84d Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 4 Nov 2025 14:15:05 +0000 Subject: [PATCH] sync regex fix Signed-off-by: Andy Miller --- system/src/Grav/Console/Gpm/SelfupgradeCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Console/Gpm/SelfupgradeCommand.php b/system/src/Grav/Console/Gpm/SelfupgradeCommand.php index 25ab3a603..afb303312 100644 --- a/system/src/Grav/Console/Gpm/SelfupgradeCommand.php +++ b/system/src/Grav/Console/Gpm/SelfupgradeCommand.php @@ -246,7 +246,9 @@ class SelfupgradeCommand extends GpmCommand $io->newLine(); foreach ($changelog as $version => $log) { $title = $version . ' [' . $log['date'] . ']'; - $content = preg_replace_callback('/\d\.\s\[\]\(#(.*)\)/', static fn($match) => "\n" . ucfirst((string) $match[1]) . ':', (string) $log['content']); + $content = preg_replace_callback('/\d\.\s\[\]\(#(.*)\)/', static function ($match) { + return "\n" . ucfirst((string) $match[1]) . ':'; + }, (string) $log['content']); $io->writeln($title); $io->writeln(str_repeat('-', strlen($title)));