make compatible to current Monolog version, update dependencies
This commit is contained in:
parent
7911327256
commit
54022196ce
@ -17,8 +17,7 @@
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"monolog/monolog": "^1.20",
|
||||
"d3/sensitive-message-formatter": "^1.0"
|
||||
"monolog/monolog": "^1.20 || ^2.10.0 || ^3.8.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^10.5",
|
||||
|
@ -24,6 +24,7 @@ use Monolog\Handler\BufferHandler;
|
||||
use Monolog\Handler\DeduplicationHandler;
|
||||
use Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy;
|
||||
use Monolog\Handler\FingersCrossedHandler;
|
||||
use Monolog\Handler\HandlerInterface;
|
||||
use Monolog\Handler\RotatingFileHandler;
|
||||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Logger;
|
||||
@ -128,7 +129,7 @@ class LoggerFactory
|
||||
public function applySpecialHandlers(
|
||||
AbstractProcessingHandler $handler,
|
||||
array $specialHandlers = []
|
||||
): AbstractHandler
|
||||
): HandlerInterface
|
||||
{
|
||||
if (in_array(self::SPECIAL_HANDLERS_BUFFERING, $specialHandlers, true)) {
|
||||
$handler = $this->setBuffering($handler);
|
||||
|
Loading…
x
Reference in New Issue
Block a user