1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 06:36:46 +02:00
This commit is contained in:
Jordi Boggiano
2014-07-28 20:40:43 +02:00
parent c82120fea3
commit 6397b5883b
2 changed files with 3 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ class FingersCrossedHandler extends AbstractHandler
* @param Boolean $stopBuffering Whether the handler should stop buffering after being triggered (default true)
* @param int $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered
*/
public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = true, $stopBuffering = true, $passthruLevel = NULL)
public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = true, $stopBuffering = true, $passthruLevel = null)
{
if (null === $activationStrategy) {
$activationStrategy = new ErrorLevelActivationStrategy(Logger::WARNING);
@@ -116,7 +116,7 @@ class FingersCrossedHandler extends AbstractHandler
*/
public function close()
{
if (NULL !== $this->passthruLevel) {
if (null !== $this->passthruLevel) {
$level = $this->passthruLevel;
$this->buffer = array_filter($this->buffer, function ($record) use ($level) {
return $record['level'] >= $level;