Skip to content

Commit

Permalink
Merge pull request #29627 from laravel/5.8-cache-alias
Browse files Browse the repository at this point in the history
[5.8] Avoid call to method alias
  • Loading branch information
taylorotwell committed Aug 18, 2019
2 parents c1c8be6 + be140fc commit 32cce63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 32cce63

Please sign in to comment.