Welcome Guest, Not a member yet? Register   Sign In
Factories::models breaks __callStatic function arguments passed to the class
#1

Hey everyone just a quick note that within framework/system/Config/Factories.php there's public static function models that calls __callStatic where new $class (...$arguments) is called and the only option for $arguments is to be object ConnectionInterface or null yet only arrays and Traversables can be unpacked.

Screenshot:
[Image: image-2022-09-28-113037055.png]

I have many projects relying on this feature that pass real array of arguments into model constructors yet now the only way is to pass ConnectionInterface object.
This issue is not critical on my end i already worked around it by using __callStatic directly, thank god it's a public function.
Reply


Messages In This Thread
Factories::models breaks __callStatic function arguments passed to the class - by stopz - 09-28-2022, 01:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB