← All changes
|
includes/sdk/google/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php
+7
-8
1.2.5
→
1.4.2
View file →
| @@ -8,17 +8,16 @@ | ||
| 8 | 8 | * |
| 9 | 9 | * For the full copyright and license information, please view the LICENSE |
| 10 | 10 | * file that was distributed with this source code. |
| 11 | 11 | */ |
| 12 | -namespace Dudlewebs\WPMCS\Monolog\Handler; | |
| 12 | +namespace Dudlewebs\WPMCS\GCP\Monolog\Handler; | |
| 13 | 13 | |
| 14 | -use Dudlewebs\WPMCS\Monolog\Processor\ProcessorInterface; | |
| 14 | +use Dudlewebs\WPMCS\GCP\Monolog\Processor\ProcessorInterface; | |
| 15 | +use Dudlewebs\WPMCS\GCP\Monolog\LogRecord; | |
| 15 | 16 | /** |
| 16 | 17 | * Interface to describe loggers that have processors |
| 17 | 18 | * |
| 18 | 19 | * @author Jordi Boggiano <[email protected]> |
| 19 | - * | |
| 20 | - * @phpstan-import-type Record from \Monolog\Logger | |
| 21 | 20 | */ |
| 22 | 21 | interface ProcessableHandlerInterface |
| 23 | 22 | { |
| 24 | 23 | /** |
| @@ -23,20 +22,20 @@ | ||
| 23 | 22 | { |
| 24 | 23 | /** |
| 25 | 24 | * Adds a processor in the stack. |
| 26 | 25 | * |
| 27 | - * @psalm-param ProcessorInterface|callable(Record): Record $callback | |
| 26 | + * @phpstan-param ProcessorInterface|(callable(LogRecord): LogRecord) $callback | |
| 28 | 27 | * |
| 29 | 28 | * @param ProcessorInterface|callable $callback |
| 30 | 29 | * @return HandlerInterface self |
| 31 | 30 | */ |
| 32 | - public function pushProcessor(callable $callback): HandlerInterface; | |
| 31 | + public function pushProcessor(callable $callback) : HandlerInterface; | |
| 33 | 32 | /** |
| 34 | 33 | * Removes the processor on top of the stack and returns it. |
| 35 | 34 | * |
| 36 | - * @psalm-return ProcessorInterface|callable(Record): Record $callback | |
| 35 | + * @phpstan-return ProcessorInterface|(callable(LogRecord): LogRecord) $callback | |
| 37 | 36 | * |
| 38 | 37 | * @throws \LogicException In case the processor stack is empty |
| 39 | 38 | * @return callable|ProcessorInterface |
| 40 | 39 | */ |
| 41 | - public function popProcessor(): callable; | |
| 40 | + public function popProcessor() : callable; | |
| 42 | 41 | } |