Browse Source

Fix case of Redis::lTrim call

Jordi Boggiano 2 năm trước cách đây
mục cha
commit
c412c2e0d6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Monolog/Handler/RedisHandler.php

+ 1 - 1
src/Monolog/Handler/RedisHandler.php

@@ -72,7 +72,7 @@ class RedisHandler extends AbstractProcessingHandler
             $mode = defined('Redis::MULTI') ? Redis::MULTI : 1;
             $this->redisClient->multi($mode)
                 ->rPush($this->redisKey, $record->formatted)
-                ->ltrim($this->redisKey, -$this->capSize, -1)
+                ->lTrim($this->redisKey, -$this->capSize, -1)
                 ->exec();
         } else {
             $redisKey = $this->redisKey;