From 261aa61d482a195465de4e4c59363a61352b479a Mon Sep 17 00:00:00 2001 From: Reinfi Date: Sat, 21 Oct 2023 14:46:13 +0200 Subject: [PATCH] allow all psr cache versions --- composer.json | 2 +- src/Service/Cache/Memory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 59facea..6f03b62 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "php": "~8.1.0 || ~8.2.0", "laminas/laminas-servicemanager": "^2.7 | ^3.0", "laminas/laminas-modulemanager": "^2.7", - "psr/simple-cache": "^1.0" + "psr/simple-cache": "^1.0 | ^2.0 | ^3.0" }, "autoload": { "psr-4": { diff --git a/src/Service/Cache/Memory.php b/src/Service/Cache/Memory.php index fd14422..dfda030 100644 --- a/src/Service/Cache/Memory.php +++ b/src/Service/Cache/Memory.php @@ -11,7 +11,7 @@ class Memory implements CacheInterface { private array $cachedItems = []; - public function get($key, $default = null) + public function get($key, $default = null): mixed { return $this->cachedItems[$key] ?? $default; }