Skip to content

Commit

Permalink
Merge pull request #29610 from laravel/5.5-psr-16
Browse files Browse the repository at this point in the history
[5.5] Fixed incorrect implementation of PSR-16
  • Loading branch information
taylorotwell authored Aug 16, 2019
2 parents 0f53880 + 1663d74 commit 4c6c24f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public function put($key, $value, $minutes = null)
*/
public function set($key, $value, $ttl = null)
{
$this->put($key, $value, $ttl);
$this->put($key, $value, is_int($ttl) ? $ttl / 60 : null);
}

/**
Expand All @@ -225,7 +225,7 @@ public function putMany(array $values, $minutes)
*/
public function setMultiple($values, $ttl = null)
{
$this->putMany(is_array($values) ? $values : iterator_to_array($values), $ttl);
$this->putMany(is_array($values) ? $values : iterator_to_array($values), is_int($ttl) ? $ttl / 60 : null);
}

/**
Expand Down

0 comments on commit 4c6c24f

Please sign in to comment.