1
0
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:
Jordi Boggiano
2018-11-03 18:02:37 +01:00
committed by GitHub
parent dc003d137e
commit 228a763397

View File

@@ -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 = [])
{ {