Since monolog 3, it is possible to pass \Monolog\Level into the $level parameter of constructor of \Monolog\Handler\AbstractHandler and consequently the LogdnaHandler.
Althouth it is practically possible now since the types are not enforced at runtime, static analysis tools may report issues when instantiating the handler with Level instance.
Since monolog 3, it is possible to pass
\Monolog\Level
into the$level
parameter of constructor of\Monolog\Handler\AbstractHandler
and consequently theLogdnaHandler
.Althouth it is practically possible now since the types are not enforced at runtime, static analysis tools may report issues when instantiating the handler with
Level
instance.monolog allowed
int
in 1.xint|string
in 2.xint|string|Level
in 3.xhttps://github.com/Seldaek/monolog/blob/3.0.0/src/Monolog/Handler/AbstractHandler.php#L36
since 3.x version of this lib supports only 3.x version of monolog, we should match the type of monolog 3.x