From 4d8116dd5d29a034e94b3de23de0b7d90223cbbb Mon Sep 17 00:00:00 2001 From: michnovka Date: Wed, 21 Feb 2024 16:05:53 +0100 Subject: [PATCH 1/2] Update CacheInterface.stubphp --- src/Stubs/common/Contracts/Cache/CacheInterface.stubphp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stubs/common/Contracts/Cache/CacheInterface.stubphp b/src/Stubs/common/Contracts/Cache/CacheInterface.stubphp index ab725a81..f78a083c 100644 --- a/src/Stubs/common/Contracts/Cache/CacheInterface.stubphp +++ b/src/Stubs/common/Contracts/Cache/CacheInterface.stubphp @@ -9,7 +9,7 @@ interface CacheInterface /** * @template T * - * @psalm-param CallbackInterface|callable(CacheItemInterface, bool): T $callback + * @psalm-param (callable(CacheItemInterface,bool):T)|(callable(ItemInterface,bool):T)|CallbackInterface $callback * @psalm-return T */ public function get(string $key, callable $callback, float $beta = null, array &$metadata = null); From d4753b95efc78c6875759d7ce58c6ed2ec576131 Mon Sep 17 00:00:00 2001 From: Farhad Safarov Date: Wed, 5 Jun 2024 19:51:35 +0300 Subject: [PATCH 2/2] cs fix --- src/Stubs/common/Contracts/Cache/CacheInterface.stubphp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stubs/common/Contracts/Cache/CacheInterface.stubphp b/src/Stubs/common/Contracts/Cache/CacheInterface.stubphp index f78a083c..2dddc303 100644 --- a/src/Stubs/common/Contracts/Cache/CacheInterface.stubphp +++ b/src/Stubs/common/Contracts/Cache/CacheInterface.stubphp @@ -9,7 +9,7 @@ interface CacheInterface /** * @template T * - * @psalm-param (callable(CacheItemInterface,bool):T)|(callable(ItemInterface,bool):T)|CallbackInterface $callback + * @psalm-param (callable(CacheItemInterface, bool): T)|(callable(ItemInterface, bool): T)|CallbackInterface $callback * @psalm-return T */ public function get(string $key, callable $callback, float $beta = null, array &$metadata = null);