Welcome Guest, Not a member yet? Register   Sign In
Migrating to php 8.2 - how to solve deprecated dynamics properties
#3
Thumbs Up 

(12-18-2022, 05:47 PM)kenjis Wrote: Try to add:
PHP Code:
use AllowDynamicProperties

But the best way is to define the properties you use.
Because dynamic properties are deprecated.

Use AllowDynamicProperties still does not work (or maybe I did not place it where it should for it to work. 

But I now understand what you meant by "define properties".  
PHP Code:
protected $viewData = [];
protected 
$session = []; 
solved my issue.

Thanks  Cool
Reply


Messages In This Thread
RE: Migrating to php 8.2 - how to solve deprecated dynamics properties - by kcs - 12-19-2022, 02:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB