From 357f6ca4ab5dbba7852ea1b1265fd174e4374b31 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 7 Dec 2023 08:50:10 +0800 Subject: [PATCH 1/3] [10.x] Facade Doc Improvements Signed-off-by: Mior Muhammad Zaki --- .github/workflows/facades.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/facades.yml b/.github/workflows/facades.yml index 2e246fa2e38c..ae386dd15eba 100644 --- a/.github/workflows/facades.yml +++ b/.github/workflows/facades.yml @@ -5,6 +5,8 @@ on: branches: - master - '*.x' + - facade-doc + workflow_dispatch: jobs: update: @@ -24,6 +26,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: + extensions: :php-psr php-version: 8.1 tools: composer:v2 coverage: none From abf543c29885938906fac1383b053d10b8579dbe Mon Sep 17 00:00:00 2001 From: crynobone Date: Thu, 7 Dec 2023 00:51:13 +0000 Subject: [PATCH 2/3] Update facade docblocks --- src/Illuminate/Support/Facades/Cache.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Illuminate/Support/Facades/Cache.php b/src/Illuminate/Support/Facades/Cache.php index a4e8af8e62ed..054b0e24c8ca 100755 --- a/src/Illuminate/Support/Facades/Cache.php +++ b/src/Illuminate/Support/Facades/Cache.php @@ -18,12 +18,12 @@ * @method static bool missing(string $key) * @method static mixed get(array|string $key, mixed|\Closure $default = null) * @method static array many(array $keys) - * @method static iterable getMultiple(void $keys, void $default = null) + * @method static iterable getMultiple(iterable $keys, mixed $default = null) * @method static mixed pull(array|string $key, mixed|\Closure $default = null) * @method static bool put(array|string $key, mixed $value, \DateTimeInterface|\DateInterval|int|null $ttl = null) - * @method static bool set(void $key, void $value, void $ttl = null) + * @method static bool set(string $key, mixed $value, null|int|\DateInterval $ttl = null) * @method static bool putMany(array $values, \DateTimeInterface|\DateInterval|int|null $ttl = null) - * @method static bool setMultiple(void $values, void $ttl = null) + * @method static bool setMultiple(iterable $values, null|int|\DateInterval $ttl = null) * @method static bool add(string $key, mixed $value, \DateTimeInterface|\DateInterval|int|null $ttl = null) * @method static int|bool increment(string $key, mixed $value = 1) * @method static int|bool decrement(string $key, mixed $value = 1) @@ -32,8 +32,8 @@ * @method static mixed sear(string $key, \Closure $callback) * @method static mixed rememberForever(string $key, \Closure $callback) * @method static bool forget(string $key) - * @method static bool delete(void $key) - * @method static bool deleteMultiple(void $keys) + * @method static bool delete(string $key) + * @method static bool deleteMultiple(iterable $keys) * @method static bool clear() * @method static \Illuminate\Cache\TaggedCache tags(array|mixed $names) * @method static bool supportsTags() From f2c2b7b283adcdb04d5135f4ed6ba2646c3ffd0b Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 7 Dec 2023 08:52:45 +0800 Subject: [PATCH 3/3] Update .github/workflows/facades.yml --- .github/workflows/facades.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/facades.yml b/.github/workflows/facades.yml index ae386dd15eba..fe4b95f2f4b3 100644 --- a/.github/workflows/facades.yml +++ b/.github/workflows/facades.yml @@ -5,7 +5,6 @@ on: branches: - master - '*.x' - - facade-doc workflow_dispatch: jobs: