Skip to content

Commit 4f8f936

Browse files
xurshudyanXurshudyan
authored andcommitted
Correct APC cache store docblock types (laravel#57020)
Co-authored-by: Xurshudyan <[email protected]>
1 parent bfca3c4 commit 4f8f936

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/Illuminate/Cache/ApcStore.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(ApcWrapper $apc, $prefix = '')
3636
* Retrieve an item from the cache by key.
3737
*
3838
* @param string $key
39-
* @return mixed
39+
* @return mixed|null
4040
*/
4141
public function get($key)
4242
{
@@ -60,8 +60,8 @@ public function put($key, $value, $seconds)
6060
* Increment the value of an item in the cache.
6161
*
6262
* @param string $key
63-
* @param mixed $value
64-
* @return int|bool
63+
* @param int $value
64+
* @return int|false
6565
*/
6666
public function increment($key, $value = 1)
6767
{
@@ -72,8 +72,8 @@ public function increment($key, $value = 1)
7272
* Decrement the value of an item in the cache.
7373
*
7474
* @param string $key
75-
* @param mixed $value
76-
* @return int|bool
75+
* @param int $value
76+
* @return int|false
7777
*/
7878
public function decrement($key, $value = 1)
7979
{

src/Illuminate/Cache/ApcWrapper.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ApcWrapper
88
* Get an item from the cache.
99
*
1010
* @param string $key
11-
* @return mixed
11+
* @return mixed|null
1212
*/
1313
public function get($key)
1414
{
@@ -23,7 +23,7 @@ public function get($key)
2323
* @param string $key
2424
* @param mixed $value
2525
* @param int $seconds
26-
* @return array|bool
26+
* @return bool
2727
*/
2828
public function put($key, $value, $seconds)
2929
{
@@ -34,8 +34,8 @@ public function put($key, $value, $seconds)
3434
* Increment the value of an item in the cache.
3535
*
3636
* @param string $key
37-
* @param mixed $value
38-
* @return int|bool
37+
* @param int $value
38+
* @return int|false
3939
*/
4040
public function increment($key, $value)
4141
{
@@ -46,8 +46,8 @@ public function increment($key, $value)
4646
* Decrement the value of an item in the cache.
4747
*
4848
* @param string $key
49-
* @param mixed $value
50-
* @return int|bool
49+
* @param int $value
50+
* @return int|false
5151
*/
5252
public function decrement($key, $value)
5353
{

0 commit comments

Comments
 (0)