From be140fcc63fb2c7373e8c19269125b8f711a127b Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 18 Aug 2019 14:53:57 +0100 Subject: [PATCH] Avoid call to method alias --- src/Illuminate/Cache/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Cache/Repository.php b/src/Illuminate/Cache/Repository.php index c6fee92a6c24..a0b7d2c67033 100755 --- a/src/Illuminate/Cache/Repository.php +++ b/src/Illuminate/Cache/Repository.php @@ -205,7 +205,7 @@ public function put($key, $value, $ttl = null) $seconds = $this->getSeconds($ttl); if ($seconds <= 0) { - return $this->delete($key); + return $this->forget($key); } $result = $this->store->put($this->itemKey($key), $value, $seconds);