From 6fee7b326157e825a2c862cdde863ab40afc92ee Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Wed, 4 Sep 2024 02:56:20 +0900 Subject: [PATCH] Implement empty return for getItems in FakeErrorCache Modified the getItems method to return an empty array for better consistency and predictability within test simulations. This change ensures that the method adheres to the expected interface behavior during testing. --- tests/Fake/FakeErrorCache.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Fake/FakeErrorCache.php b/tests/Fake/FakeErrorCache.php index f3413e90..13b0efa8 100644 --- a/tests/Fake/FakeErrorCache.php +++ b/tests/Fake/FakeErrorCache.php @@ -19,6 +19,7 @@ public function getItem($key): CacheItem public function getItems(array $keys = []): iterable { + return []; } public function hasItem($key): bool