mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 13:16:39 +02:00
After Logger::toMonologLevel string|int is normalized to int
This commit is contained in:
@@ -36,7 +36,7 @@ use Monolog\Logger;
|
|||||||
class ChannelLevelActivationStrategy implements ActivationStrategyInterface
|
class ChannelLevelActivationStrategy implements ActivationStrategyInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var string|int
|
* @var int
|
||||||
*/
|
*/
|
||||||
private $defaultActionLevel;
|
private $defaultActionLevel;
|
||||||
|
|
||||||
@@ -46,8 +46,8 @@ class ChannelLevelActivationStrategy implements ActivationStrategyInterface
|
|||||||
private $channelToActionLevel;
|
private $channelToActionLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $defaultActionLevel The default action level to be used if the record's category doesn't match any
|
* @param string|int $defaultActionLevel The default action level to be used if the record's category doesn't match any
|
||||||
* @param array $channelToActionLevel An array that maps channel names to action levels.
|
* @param array $channelToActionLevel An array that maps channel names to action levels.
|
||||||
*/
|
*/
|
||||||
public function __construct($defaultActionLevel, array $channelToActionLevel = [])
|
public function __construct($defaultActionLevel, array $channelToActionLevel = [])
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user