Skip to content

Commit

Permalink
Fix return type in Cache contract
Browse files Browse the repository at this point in the history
  • Loading branch information
plehatron committed Dec 3, 2018
1 parent 0d10dd7 commit cf188c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Cache/RedisTaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class RedisTaggedCache extends TaggedCache
* @param string $key
* @param mixed $value
* @param \DateTime|float|int|null $minutes
* @return void
* @return bool
*/
public function put($key, $value, $minutes = null)
{
$this->pushStandardKeys($this->tags->getNamespace(), $key);

parent::put($key, $value, $minutes);
return parent::put($key, $value, $minutes);
}

/**
Expand Down Expand Up @@ -65,13 +65,13 @@ public function decrement($key, $value = 1)
*
* @param string $key
* @param mixed $value
* @return void
* @return bool
*/
public function forever($key, $value)
{
$this->pushForeverKeys($this->tags->getNamespace(), $key);

parent::forever($key, $value);
return parent::forever($key, $value);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Contracts/Cache/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function pull($key, $default = null);
* @param string $key
* @param mixed $value
* @param \DateTimeInterface|\DateInterval|float|int $minutes
* @return void
* @return bool
*/
public function put($key, $value, $minutes);

Expand Down Expand Up @@ -76,7 +76,7 @@ public function decrement($key, $value = 1);
*
* @param string $key
* @param mixed $value
* @return void
* @return bool
*/
public function forever($key, $value);

Expand Down

0 comments on commit cf188c7

Please sign in to comment.