mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
replace isset
with coalesce operator (#1761)
This commit is contained in:
committed by
GitHub
parent
b40d426849
commit
0a60d6922a
@@ -97,11 +97,11 @@ class IntrospectionProcessor implements ProcessorInterface
|
||||
$record->extra = array_merge(
|
||||
$record->extra,
|
||||
[
|
||||
'file' => isset($trace[$i - 1]['file']) ? $trace[$i - 1]['file'] : null,
|
||||
'line' => isset($trace[$i - 1]['line']) ? $trace[$i - 1]['line'] : null,
|
||||
'class' => isset($trace[$i]['class']) ? $trace[$i]['class'] : null,
|
||||
'callType' => isset($trace[$i]['type']) ? $trace[$i]['type'] : null,
|
||||
'function' => isset($trace[$i]['function']) ? $trace[$i]['function'] : null,
|
||||
'file' => $trace[$i - 1]['file'] ?? null,
|
||||
'line' => $trace[$i - 1]['line'] ?? null,
|
||||
'class' => $trace[$i]['class'] ?? null,
|
||||
'callType' => $trace[$i]['type'] ?? null,
|
||||
'function' => $trace[$i]['function'] ?? null,
|
||||
]
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user