From 1bb27ca19c160cdafb7ed0e264ea101f634b0ec1 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Thu, 14 Sep 2023 16:31:56 +0100 Subject: [PATCH] Update InMemoryCache.php Signed-off-by: Kamil Tekiela --- src/Cache/InMemoryCache.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Cache/InMemoryCache.php b/src/Cache/InMemoryCache.php index 7db7d9f..5eea961 100644 --- a/src/Cache/InMemoryCache.php +++ b/src/Cache/InMemoryCache.php @@ -11,11 +11,10 @@ final class InMemoryCache implements CacheInterface, GetAllInterface { /** @var array */ - private array $cache; + private array $cache = []; public function __construct(MoParser $parser) { - $this->cache = []; $parser->parseIntoCache($this); }