You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's because Model::$db is defined as a ConnectionInterface which only has a small subset of the actual methods in BaseConnection. Unfortunately we have a number of these discrepancies between base/abstract classes and typed interfaces. Since changing an interface is a breaking change it isn't an easy fix, but in the short term we could simply declare Model::$db as ConnectionInterface|BaseConnection. @samsonasik and @paulbalandan isn't that essentially how you fixed the similar issue with ResponseInterface?
Yes, on request use case, it was can't be changed in system, so change in BaseController instead, probably give a try apply BaseConnection to Base Model class ?
Describe the bug
Found red line on Model (
setPrefix()
&prefixTable()
)CodeIgniter 4 version
4.1.1
Context
The text was updated successfully, but these errors were encountered: