Jelajahi Sumber

Fixed forward compatibilty layer

Grégoire Pineau 6 tahun lalu
induk
melakukan
626bde6159

+ 2 - 1
src/Monolog/Handler/FormattableHandlerInterface.php

@@ -16,7 +16,8 @@ use Monolog\Formatter\FormatterInterface;
 /**
 /**
  * Interface to describe loggers that have a formatter
  * 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>
  * @author Jordi Boggiano <j.boggiano@seld.be>
  */
  */
 interface FormattableHandlerInterface
 interface FormattableHandlerInterface

+ 2 - 1
src/Monolog/Handler/FormattableHandlerTrait.php

@@ -17,7 +17,8 @@ use Monolog\Formatter\LineFormatter;
 /**
 /**
  * Helper trait for implementing FormattableInterface
  * 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>
  * @author Jordi Boggiano <j.boggiano@seld.be>
  */
  */
 trait FormattableHandlerTrait
 trait FormattableHandlerTrait

+ 3 - 2
src/Monolog/Handler/ProcessableHandlerInterface.php

@@ -16,7 +16,8 @@ use Monolog\Processor\ProcessorInterface;
 /**
 /**
  * Interface to describe loggers that have processors
  * 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>
  * @author Jordi Boggiano <j.boggiano@seld.be>
  */
  */
 interface ProcessableHandlerInterface
 interface ProcessableHandlerInterface
@@ -27,7 +28,7 @@ interface ProcessableHandlerInterface
      * @param  ProcessorInterface|callable $callback
      * @param  ProcessorInterface|callable $callback
      * @return HandlerInterface            self
      * @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.
      * Removes the processor on top of the stack and returns it.

+ 3 - 2
src/Monolog/Handler/ProcessableHandlerTrait.php

@@ -16,7 +16,8 @@ use Monolog\ResettableInterface;
 /**
 /**
  * Helper trait for implementing ProcessableInterface
  * 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>
  * @author Jordi Boggiano <j.boggiano@seld.be>
  */
  */
 trait ProcessableHandlerTrait
 trait ProcessableHandlerTrait
@@ -30,7 +31,7 @@ trait ProcessableHandlerTrait
      * {@inheritdoc}
      * {@inheritdoc}
      * @suppress PhanTypeMismatchReturn
      * @suppress PhanTypeMismatchReturn
      */
      */
-    public function pushProcessor(callable $callback): HandlerInterface
+    public function pushProcessor($callback): HandlerInterface
     {
     {
         array_unshift($this->processors, $callback);
         array_unshift($this->processors, $callback);