From 626bde615905ba99ccbe8a3d0da558434fc28aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 6 Sep 2019 14:55:25 +0200 Subject: [PATCH] Fixed forward compatibilty layer --- src/Monolog/Handler/FormattableHandlerInterface.php | 3 ++- src/Monolog/Handler/FormattableHandlerTrait.php | 3 ++- src/Monolog/Handler/ProcessableHandlerInterface.php | 5 +++-- src/Monolog/Handler/ProcessableHandlerTrait.php | 5 +++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/Monolog/Handler/FormattableHandlerInterface.php b/src/Monolog/Handler/FormattableHandlerInterface.php index b6d4c6ac..3e2f1b28 100644 --- a/src/Monolog/Handler/FormattableHandlerInterface.php +++ b/src/Monolog/Handler/FormattableHandlerInterface.php @@ -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 */ interface FormattableHandlerInterface diff --git a/src/Monolog/Handler/FormattableHandlerTrait.php b/src/Monolog/Handler/FormattableHandlerTrait.php index 5233bf55..e9ec5e77 100644 --- a/src/Monolog/Handler/FormattableHandlerTrait.php +++ b/src/Monolog/Handler/FormattableHandlerTrait.php @@ -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 */ trait FormattableHandlerTrait diff --git a/src/Monolog/Handler/ProcessableHandlerInterface.php b/src/Monolog/Handler/ProcessableHandlerInterface.php index bfa71497..66a3d83a 100644 --- a/src/Monolog/Handler/ProcessableHandlerInterface.php +++ b/src/Monolog/Handler/ProcessableHandlerInterface.php @@ -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 */ 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. diff --git a/src/Monolog/Handler/ProcessableHandlerTrait.php b/src/Monolog/Handler/ProcessableHandlerTrait.php index a5092929..09f32a12 100644 --- a/src/Monolog/Handler/ProcessableHandlerTrait.php +++ b/src/Monolog/Handler/ProcessableHandlerTrait.php @@ -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 */ 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);