-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: Phalcon v5.0.0-alpha.2 - whats wrong with models cache? #15471
Comments
Can you provide code part around this line? As is see in error, you trying to:
Can you try next change?
|
Line 33 is that line with "key=" from ::find, but i will be more specific later, just to back home. |
Can you try this one?
|
I confirm that this work in Phalcon 4x and Phalcon 5.0.0 alpha-2. I will test other type of cache to see if all works fine. Well... thanks! A lot :) U awesome! |
Its only related to |
@BeMySlaveDarlin so its not related with other cache stuff? Ok, cool. Thanks |
Nope, only modelsCache service. The rest of services works fine. |
Lov u guys xD Best wishes. |
I actually managed to reproduce this. It only happens in PHP 8 and the solution is to use I should have something ready very soon. |
Fixed in #15478 |
Describe the bug
I try to migrate to Phalcon v.5 (php8) or just still try it with my project- need to be sure they will work fine with next releases. And yes, they works almost fine... except something with cache stuff. The error i get is:
Fatal error: Uncaught TypeError: Phalcon\Mvc\Model\Resultset\Simple::__construct(): Argument #4 ($cache) must be of type ?Phalcon\Cache\Adapter\AdapterInterface, Phalcon\Cache given in v1\modules\client\controllers\ControllerBase.php on line 33
So, in this line i have:
... and see is something related with models cache service. Its init like that:
Soo... maybe the mistake is Phalcon\Cache, but this works in Phalcon 4.x. So how must be changed?
Thanks :)
And may the force be with you!
Details
The text was updated successfully, but these errors were encountered: