Skip to content

Commit

Permalink
allow all psr cache versions
Browse files Browse the repository at this point in the history
  • Loading branch information
reinfi committed Oct 21, 2023
1 parent e036985 commit 261aa61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Service/Cache/Memory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 261aa61

Please sign in to comment.