![]() |
[DEPRECATED] Creation of dynamic property - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [DEPRECATED] Creation of dynamic property (/showthread.php?tid=92649) |
[DEPRECATED] Creation of dynamic property - BlayMo - 03-22-2025 I have added in SYSTEMPATH\Config\BaseConfig.php (Codeigniter 4.6.0): PHP Code: #[\AllowDynamicProperties] RE: [DEPRECATED] Creation of dynamic property - paulbalandan - 03-26-2025 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. RE: [DEPRECATED] Creation of dynamic property - BlayMo - 03-28-2025 [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] |