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