X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=blobdiff_plain;f=includes%2Fdebug%2Flogger%2FMonologSpi.php;h=670ba391e7fbaf4f34b715740a2338921a607cb8;hb=485f66f1744fea056e20a5bef619989bf1749202;hp=ec27ad1cdc11ff1027efe0af0e0359b86b562705;hpb=b191e5e860f24e1dd05e3d3d782364e4ea75b176;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/debug/logger/MonologSpi.php b/includes/debug/logger/MonologSpi.php index ec27ad1cdc..670ba391e7 100644 --- a/includes/debug/logger/MonologSpi.php +++ b/includes/debug/logger/MonologSpi.php @@ -179,9 +179,7 @@ class MonologSpi implements Spi { if ( !isset( $this->singletons['loggers'][$channel] ) ) { // Fallback to using the '@default' configuration if an explict // configuration for the requested channel isn't found. - $spec = isset( $this->config['loggers'][$channel] ) ? - $this->config['loggers'][$channel] : - $this->config['loggers']['@default']; + $spec = $this->config['loggers'][$channel] ?? $this->config['loggers']['@default']; $monolog = $this->createLogger( $channel, $spec ); $this->singletons['loggers'][$channel] = $monolog;