Skip to content

Commit

Permalink
Implement proper return types (#36836)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Apr 1, 2021
1 parent 3bd45b1 commit 0ac0520
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/Illuminate/Cache/RedisTaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class RedisTaggedCache extends TaggedCache
* @var string
*/
const REFERENCE_KEY_FOREVER = 'forever_ref';

/**
* Standard reference key.
*
Expand Down Expand Up @@ -41,27 +42,27 @@ public function put($key, $value, $ttl = null)
*
* @param string $key
* @param mixed $value
* @return void
* @return int|bool
*/
public function increment($key, $value = 1)
{
$this->pushStandardKeys($this->tags->getNamespace(), $key);

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

/**
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @return void
* @return int|bool
*/
public function decrement($key, $value = 1)
{
$this->pushStandardKeys($this->tags->getNamespace(), $key);

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

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/TaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function putMany(array $values, $ttl = null)
*
* @param string $key
* @param mixed $value
* @return void
* @return int|bool
*/
public function increment($key, $value = 1)
{
Expand All @@ -64,7 +64,7 @@ public function increment($key, $value = 1)
*
* @param string $key
* @param mixed $value
* @return void
* @return int|bool
*/
public function decrement($key, $value = 1)
{
Expand Down

0 comments on commit 0ac0520

Please sign in to comment.