mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 17:46:09 +02:00
Add some return type hints and fix up HandlerWrapper
This commit is contained in:
@@ -22,14 +22,15 @@ interface ProcessableHandlerInterface
|
||||
* Adds a processor in the stack.
|
||||
*
|
||||
* @param callable $callback
|
||||
* @return self
|
||||
* @return HandlerInterface self
|
||||
*/
|
||||
public function pushProcessor(callable $callback);
|
||||
public function pushProcessor(callable $callback): HandlerInterface;
|
||||
|
||||
/**
|
||||
* Removes the processor on top of the stack and returns it.
|
||||
*
|
||||
* @return callable
|
||||
* @throws LogicException In case the processor stack is empty
|
||||
*/
|
||||
public function popProcessor();
|
||||
public function popProcessor(): callable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user