X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTestLogger.php;h=3cb20e1bd4fd5878b7e4b6b199c3cf565cccde5c;hb=7858f2da918708670ebc3466b75c7d2b630fe0f0;hp=7099c3aceaf1160719c203c8d4b630cb7fb620ee;hpb=ff20437da7bed879299d94329cd9c9091fe033ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TestLogger.php b/tests/phpunit/includes/TestLogger.php index 7099c3acea..3cb20e1bd4 100644 --- a/tests/phpunit/includes/TestLogger.php +++ b/tests/phpunit/includes/TestLogger.php @@ -33,7 +33,7 @@ use Psr\Log\LogLevel; */ class TestLogger extends \Psr\Log\AbstractLogger { private $collect = false; - private $buffer = array(); + private $buffer = []; private $filter = null; /** @@ -66,10 +66,10 @@ class TestLogger extends \Psr\Log\AbstractLogger { * Clear the collected log buffer */ public function clearBuffer() { - $this->buffer = array(); + $this->buffer = []; } - public function log( $level, $message, array $context = array() ) { + public function log( $level, $message, array $context = [] ) { $message = trim( $message ); if ( $this->filter ) { @@ -80,7 +80,7 @@ class TestLogger extends \Psr\Log\AbstractLogger { } if ( $this->collect ) { - $this->buffer[] = array( $level, $message ); + $this->buffer[] = [ $level, $message ]; } else { switch ( $level ) { case LogLevel::DEBUG: