From 6f5c5b96a4580fffb7a6afbddbbe121bc5f28cc7 Mon Sep 17 00:00:00 2001 From: cesarreyes3 <109559100+cesarreyes3@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:59:20 -0500 Subject: [PATCH] Short ternary operator is not allowed, use null coalesce operator --- src/Monolog/Formatter/LineFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monolog/Formatter/LineFormatter.php b/src/Monolog/Formatter/LineFormatter.php index a70754794..7d35960cc 100644 --- a/src/Monolog/Formatter/LineFormatter.php +++ b/src/Monolog/Formatter/LineFormatter.php @@ -294,7 +294,7 @@ private function stacktracesParser(\Throwable $e): string $trace = $e->getTraceAsString(); if ($this->basePath !== '') { - $trace = preg_replace('{^(#\d+ )' . preg_quote($this->basePath) . '}m', '$1', $trace) ?: $trace; + $trace = preg_replace('{^(#\d+ )' . preg_quote($this->basePath) . '}m', '$1', $trace) ?? $trace; } if ($this->stacktracesParser !== null) {