Welcome Guest, Not a member yet? Register   Sign In
[DEPRECATED] Creation of dynamic property
#1
Lightbulb 

I have added in SYSTEMPATH\Config\BaseConfig.php (Codeigniter 4.6.0):
PHP Code:
#[\AllowDynamicProperties]
class BaseConfig
This avoids the WARNING 
[DEPRECATEDCreation of dynamic property Config\Validation::$users
I think it is important to make this adjustment

Reply
#2

Can't you just declare the missing property in your Config\Validation class and not rely on dynamic creation? The deprecation is there to prevent creation of misspelled property names.
Reply
#3

[quote pid="424864" dateline="1743014798"]

Thanks for your suggestion. I have declared the variable in ConfigValidation and removed the WARNING error. Doing this is the most logical thing to do, no need to touch the heart of CI4. Thank you Paul
[/quote]
Reply




Theme © iAndrew 2016 - Forum software by © MyBB