-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatible types between PragmaRX\Countries\Package\Services\Cache\Service and Psr\SimpleCache\CacheInterface #207
Comments
Yes, sorry about that, I believe I'll have to tag a major version on this one as it's a breaking change. Are you able to use a fixed version (previous one) for now? |
Hi @antonioribeiro |
Hello @antonioribeiro ? :-) |
Hey @antonioribeiro I think #203 fixes the issue |
Hello @ghunti , unfortunately is never that simple. I just took some time to merge that PR and also move back to use Illuminate/Collections. Tests are mostly passing on both packages (Countries and Coollection), but we need help to fix the missing ones. |
Hey @antonioribeiro totally understand X-) Can you point me to the PR/branch where you are working? I might be able to help :-) |
Hello i'm facing the same problem: [2024-12-21 22:52:26] local.ERROR: Declaration of PragmaRX\Countries\Package\Services\Cache\Service::get($key, $default = null) must be compatible with Psr\SimpleCache\CacheInterface::get(string $key, mixed $default = null): mixed {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Declaration of PragmaRX\Countries\Package\Services\Cache\Service::get($key, $default = null) must be compatible with Psr\SimpleCache\CacheInterface::get(string $key, mixed $default = null): mixed at /var/www/html/vendor/pragmarx/countries/src/package/Services/Cache/Service.php:90) For now i back this package to 0.8.2 |
Hi @antonioribeiro
The latest version of thhis package, changed the compatiblity of the
psr/simple-cache
to ^3.0.The problem is that now there's an incompatibility between PragmaRX\Countries\Package\Services\Cache\Service and Psr\SimpleCache\CacheInterface:
The text was updated successfully, but these errors were encountered: