Skip to content

Commit 81d5ed9

Browse files
authored
[10.x] Fixes generating facades documentation shouldn't be affected by php-psr extension (#49268)
* [10.x] Facade Doc Improvements Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update facade docblocks * Update .github/workflows/facades.yml --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: crynobone <[email protected]>
1 parent 0f188f3 commit 81d5ed9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/facades.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- master
77
- '*.x'
8+
workflow_dispatch:
89

910
jobs:
1011
update:
@@ -24,6 +25,7 @@ jobs:
2425
- name: Setup PHP
2526
uses: shivammathur/setup-php@v2
2627
with:
28+
extensions: :php-psr
2729
php-version: 8.1
2830
tools: composer:v2
2931
coverage: none

src/Illuminate/Support/Facades/Cache.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
* @method static bool missing(string $key)
1919
* @method static mixed get(array|string $key, mixed|\Closure $default = null)
2020
* @method static array many(array $keys)
21-
* @method static iterable getMultiple(void $keys, void $default = null)
21+
* @method static iterable getMultiple(iterable $keys, mixed $default = null)
2222
* @method static mixed pull(array|string $key, mixed|\Closure $default = null)
2323
* @method static bool put(array|string $key, mixed $value, \DateTimeInterface|\DateInterval|int|null $ttl = null)
24-
* @method static bool set(void $key, void $value, void $ttl = null)
24+
* @method static bool set(string $key, mixed $value, null|int|\DateInterval $ttl = null)
2525
* @method static bool putMany(array $values, \DateTimeInterface|\DateInterval|int|null $ttl = null)
26-
* @method static bool setMultiple(void $values, void $ttl = null)
26+
* @method static bool setMultiple(iterable $values, null|int|\DateInterval $ttl = null)
2727
* @method static bool add(string $key, mixed $value, \DateTimeInterface|\DateInterval|int|null $ttl = null)
2828
* @method static int|bool increment(string $key, mixed $value = 1)
2929
* @method static int|bool decrement(string $key, mixed $value = 1)
@@ -32,8 +32,8 @@
3232
* @method static mixed sear(string $key, \Closure $callback)
3333
* @method static mixed rememberForever(string $key, \Closure $callback)
3434
* @method static bool forget(string $key)
35-
* @method static bool delete(void $key)
36-
* @method static bool deleteMultiple(void $keys)
35+
* @method static bool delete(string $key)
36+
* @method static bool deleteMultiple(iterable $keys)
3737
* @method static bool clear()
3838
* @method static \Illuminate\Cache\TaggedCache tags(array|mixed $names)
3939
* @method static bool supportsTags()

0 commit comments

Comments
 (0)