1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-03 19:57:41 +02:00

Fixed forward compatibilty layer

This commit is contained in:
Grégoire Pineau
2019-09-06 14:55:25 +02:00
parent c5dcc05def
commit 626bde6159
4 changed files with 10 additions and 6 deletions

View File

@@ -16,7 +16,8 @@ use Monolog\Formatter\FormatterInterface;
/**
* Interface to describe loggers that have a formatter
*
* @internal This interface is present in monolog 1.x to ease forward compatibility.
* This interface is present in monolog 1.x to ease forward compatibility.
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
interface FormattableHandlerInterface

View File

@@ -17,7 +17,8 @@ use Monolog\Formatter\LineFormatter;
/**
* Helper trait for implementing FormattableInterface
*
* @internal This interface is present in monolog 1.x to ease forward compatibility.
* This trait is present in monolog 1.x to ease forward compatibility.
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
trait FormattableHandlerTrait

View File

@@ -16,7 +16,8 @@ use Monolog\Processor\ProcessorInterface;
/**
* Interface to describe loggers that have processors
*
* @internal This interface is present in monolog 1.x to ease forward compatibility.
* This interface is present in monolog 1.x to ease forward compatibility.
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
interface ProcessableHandlerInterface
@@ -27,7 +28,7 @@ interface ProcessableHandlerInterface
* @param ProcessorInterface|callable $callback
* @return HandlerInterface self
*/
public function pushProcessor(callable $callback): HandlerInterface;
public function pushProcessor($callback): HandlerInterface;
/**
* Removes the processor on top of the stack and returns it.

View File

@@ -16,7 +16,8 @@ use Monolog\ResettableInterface;
/**
* Helper trait for implementing ProcessableInterface
*
* @internal This interface is present in monolog 1.x to ease forward compatibility.
* This trait is present in monolog 1.x to ease forward compatibility.
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*/
trait ProcessableHandlerTrait
@@ -30,7 +31,7 @@ trait ProcessableHandlerTrait
* {@inheritdoc}
* @suppress PhanTypeMismatchReturn
*/
public function pushProcessor(callable $callback): HandlerInterface
public function pushProcessor($callback): HandlerInterface
{
array_unshift($this->processors, $callback);