Closed therealsamsquanch closed 2 years ago
Hello,
By looking the expected signature: Psr\SimpleCache\CacheInterface::get($key, $default = )
you're not using 3.0.0
but 2.0.0
.
It's weird, because I confirmed that 3.0.0
was installed by using composer show
.
I went back to phpfastcache 8.1.0 and psr/simple-cache automatically reverted to 1.0.1. Everything is working again.
Always clear the composer cache before using composer show
:)
After updating to 9.0.1 I'm getting this error:
Fatal error: Declaration of Phpfastcache\Helper\Psr16Adapter::get(string $key, mixed $default = null): mixed must be compatible with Psr\SimpleCache\CacheInterface::get($key, $default = ) in /path/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Helper/Psr16Adapter.php on line 69
I have psr/simple-cache 3.0.0 installed.
I'm using mimmi20/BrowserDetector, it requires a PSR-16 compatible cache, so I'm passing phpfastcache's PSR-16 adapter. It used to work fine with phpfastcache 8.x and psr/simple-cache 1.0.0