mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 17:16:18 +02:00
Use coalesce operator (#982)
* Use coalesce operator * Use coalesce operator * Use coalesce operator * Use coalesce operator
This commit is contained in:
committed by
Jordi Boggiano
parent
35c84c5b6f
commit
e5ff7eb074
@@ -88,7 +88,7 @@ class WebProcessor
|
||||
private function appendExtraFields(array $extra): array
|
||||
{
|
||||
foreach ($this->extraFields as $extraName => $serverName) {
|
||||
$extra[$extraName] = isset($this->serverData[$serverName]) ? $this->serverData[$serverName] : null;
|
||||
$extra[$extraName] = $this->serverData[$serverName] ?? null;
|
||||
}
|
||||
|
||||
if (isset($this->serverData['UNIQUE_ID'])) {
|
||||
|
Reference in New Issue
Block a user