Skip to content

Commit 6d3fbc5

Browse files
Improve PHPDoc for the Illuminate\Cache folder files (#56028)
1 parent 11e3363 commit 6d3fbc5

File tree

8 files changed

+9
-1
lines changed

8 files changed

+9
-1
lines changed

src/Illuminate/Cache/ArrayLock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function release()
8282
/**
8383
* Returns the owner value written into the driver for this lock.
8484
*
85-
* @return string
85+
* @return string|null
8686
*/
8787
protected function getCurrentOwner()
8888
{

src/Illuminate/Cache/DatabaseLock.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class DatabaseLock extends Lock
4444
* @param int $seconds
4545
* @param string|null $owner
4646
* @param array $lottery
47+
* @param int $defaultTimeoutInSeconds
4748
*/
4849
public function __construct(Connection $connection, $table, $name, $seconds, $owner = null, $lottery = [2, 100], $defaultTimeoutInSeconds = 86400)
4950
{

src/Illuminate/Cache/DatabaseStore.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class DatabaseStore implements LockProvider, Store
7676
* @param string $prefix
7777
* @param string $lockTable
7878
* @param array $lockLottery
79+
* @param int $defaultLockTimeoutInSeconds
7980
*/
8081
public function __construct(
8182
ConnectionInterface $connection,
@@ -169,6 +170,7 @@ public function put($key, $value, $seconds)
169170
/**
170171
* Store multiple items in the cache for a given number of seconds.
171172
*
173+
* @param array $values
172174
* @param int $seconds
173175
* @return bool
174176
*/

src/Illuminate/Cache/Events/CacheFlushFailed.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class CacheFlushFailed
2222
* Create a new event instance.
2323
*
2424
* @param string|null $storeName
25+
* @param array $tags
2526
*/
2627
public function __construct($storeName, array $tags = [])
2728
{

src/Illuminate/Cache/Events/CacheFlushed.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class CacheFlushed
2222
* Create a new event instance.
2323
*
2424
* @param string|null $storeName
25+
* @param array $tags
2526
*/
2627
public function __construct($storeName, array $tags = [])
2728
{

src/Illuminate/Cache/Events/CacheFlushing.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class CacheFlushing
2222
* Create a new event instance.
2323
*
2424
* @param string|null $storeName
25+
* @param array $tags
2526
*/
2627
public function __construct($storeName, array $tags = [])
2728
{

src/Illuminate/Cache/MemoizedStore.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public function put($key, $value, $seconds)
108108
/**
109109
* Store multiple items in the cache for a given number of seconds.
110110
*
111+
* @param array $values
111112
* @param int $seconds
112113
* @return bool
113114
*/

src/Illuminate/Cache/RedisTagSet.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function flushStaleEntries()
9090
* Flush the tag from the cache.
9191
*
9292
* @param string $name
93+
* @return string
9394
*/
9495
public function flushTag($name)
9596
{

0 commit comments

Comments
 (0)