Skip to content

Commit

Permalink
Implement empty return for getItems in FakeErrorCache
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
koriym committed Sep 3, 2024
1 parent 0257091 commit 6fee7b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Fake/FakeErrorCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function getItem($key): CacheItem

public function getItems(array $keys = []): iterable
{
return [];
}

public function hasItem($key): bool
Expand Down

0 comments on commit 6fee7b3

Please sign in to comment.