Skip to content

Commit

Permalink
Fix $key type in Cache\Store
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Apr 17, 2024
1 parent 1ab4de5 commit 5d2ff3c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/ApcStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(ApcWrapper $apc, $prefix = '')
/**
* Retrieve an item from the cache by key.
*
* @param string|array $key
* @param string $key
* @return mixed
*/
public function get($key)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/ArrayStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct($serializesValues = false)
/**
* Retrieve an item from the cache by key.
*
* @param string|array $key
* @param string $key
* @return mixed
*/
public function get($key)
Expand Down
14 changes: 7 additions & 7 deletions src/Illuminate/Cache/DatabaseStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function __construct(ConnectionInterface $connection,
/**
* Retrieve an item from the cache by key.
*
* @param string|array $key
* @param string $key
* @return mixed
*/
public function get($key)
Expand Down Expand Up @@ -177,8 +177,8 @@ public function add($key, $value, $seconds)
* Increment the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @return int|bool
* @param int $value
* @return int|false
*/
public function increment($key, $value = 1)
{
Expand All @@ -191,8 +191,8 @@ public function increment($key, $value = 1)
* Decrement the value of an item in the cache.
*
* @param string $key
* @param mixed $value
* @return int|bool
* @param int $value
* @return int|false
*/
public function decrement($key, $value = 1)
{
Expand All @@ -205,9 +205,9 @@ public function decrement($key, $value = 1)
* Increment or decrement an item in the cache.
*
* @param string $key
* @param mixed $value
* @param int|float $value
* @param \Closure $callback
* @return int|bool
* @return int|false
*/
protected function incrementOrDecrement($key, $value, Closure $callback)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/DynamoDbStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function add($key, $value, $seconds)
*
* @param string $key
* @param mixed $value
* @return int|bool
* @return int|false
*/
public function increment($key, $value = 1)
{
Expand Down Expand Up @@ -350,7 +350,7 @@ public function increment($key, $value = 1)
*
* @param string $key
* @param mixed $value
* @return int|bool
* @return int|false
*/
public function decrement($key, $value = 1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/FileStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct(Filesystem $files, $directory, $filePermission = nul
/**
* Retrieve an item from the cache by key.
*
* @param string|array $key
* @param string $key
* @return mixed
*/
public function get($key)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/MemcachedStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function add($key, $value, $seconds)
*
* @param string $key
* @param mixed $value
* @return int|bool
* @return int|false
*/
public function increment($key, $value = 1)
{
Expand All @@ -159,7 +159,7 @@ public function increment($key, $value = 1)
*
* @param string $key
* @param mixed $value
* @return int|bool
* @return int|false
*/
public function decrement($key, $value = 1)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/NullStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function put($key, $value, $seconds)
*
* @param string $key
* @param mixed $value
* @return bool
* @return false
*/
public function increment($key, $value = 1)
{
Expand All @@ -49,7 +49,7 @@ public function increment($key, $value = 1)
*
* @param string $key
* @param mixed $value
* @return bool
* @return false
*/
public function decrement($key, $value = 1)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/RedisStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(Redis $redis, $prefix = '', $connection = 'default')
/**
* Retrieve an item from the cache by key.
*
* @param string|array $key
* @param string $key
* @return mixed
*/
public function get($key)
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Cache/Store.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface Store
/**
* Retrieve an item from the cache by key.
*
* @param string|array $key
* @param string $key
* @return mixed
*/
public function get($key);
Expand Down

0 comments on commit 5d2ff3c

Please sign in to comment.