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

(This post was last modified: 01-07-2023, 01:27 PM by volkankaban.)

(12-19-2022, 02:08 AM)kcs Wrote:
(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

After that, I got $_SESSION errors, do I need to update system folder something like change session.name to session.id?
Reply


Messages In This Thread
RE: Migrating to php 8.2 - how to solve deprecated dynamics properties - by volkankaban - 01-07-2023, 01:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB