Skip to content

Commit

Permalink
Allow string also for level
Browse files Browse the repository at this point in the history
  • Loading branch information
gmponos committed Jun 22, 2020
1 parent 4ef697d commit c6a56f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Monolog/Handler/OverflowHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ class OverflowHandler extends AbstractHandler implements FormattableHandlerInter
/**
* @param HandlerInterface $handler
* @param int[] $thresholdMap Dictionary of logger level => threshold
* @param int $level
* @param int|string $level The minimum logging level at which this handler will be triggered
* @param bool $bubble
*/
public function __construct(
HandlerInterface $handler,
array $thresholdMap = [],
int $level = Logger::DEBUG,
$level = Logger::DEBUG,
bool $bubble = true
) {
$this->handler = $handler;
Expand Down

0 comments on commit c6a56f0

Please sign in to comment.