Skip to content

Commit

Permalink
Short ternary operator is not allowed, use null coalesce operator
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarreyes3 authored Apr 12, 2024
1 parent 4c10b64 commit 6f5c5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monolog/Formatter/LineFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6f5c5b9

Please sign in to comment.