/**
* @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;
/**
* 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;