X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTestLogger.php;h=fd457324227eab8aa7c1a92167dae3bb9d22b06e;hb=e4e80971112b483a7c76f9351f9537f25f28ed06;hp=21d1bf2504e80875024547f20b1222af661fe0b7;hpb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TestLogger.php b/tests/phpunit/includes/TestLogger.php index 21d1bf2504..fd45732422 100644 --- a/tests/phpunit/includes/TestLogger.php +++ b/tests/phpunit/includes/TestLogger.php @@ -38,10 +38,10 @@ class TestLogger extends \Psr\Log\AbstractLogger { /** * @param bool $collect Whether to collect logs. @see setCollect() - * @param callable $filter Filter logs before collecting/printing. Signature is + * @param callable|null $filter Filter logs before collecting/printing. Signature is * string|null function ( string $message, string $level, array $context ); - * @param bool $collectContext Whether to keep the context passed to log. - * @since 1.29 @see setCollectContext() + * @param bool $collectContext Whether to keep the context passed to log + * (since 1.29, @see setCollectContext()). */ public function __construct( $collect = false, $filter = null, $collectContext = false ) { $this->collect = $collect; @@ -73,8 +73,8 @@ class TestLogger extends \Psr\Log\AbstractLogger { /** * Return the collected logs - * @return array Array of array( string $level, string $message ), or - * array( string $level, string $message, array $context ) if $collectContext was true. + * @return array Array of [ string $level, string $message ], or + * [ string $level, string $message, array $context ] if $collectContext was true. */ public function getBuffer() { return $this->buffer;