diff --git a/.github/workflows/facades.yml b/.github/workflows/facades.yml index 2e246fa2e38c..fe4b95f2f4b3 100644 --- a/.github/workflows/facades.yml +++ b/.github/workflows/facades.yml @@ -5,6 +5,7 @@ on: branches: - master - '*.x' + workflow_dispatch: jobs: update: @@ -24,6 +25,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: + extensions: :php-psr php-version: 8.1 tools: composer:v2 coverage: none 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()