PHP Deprecated: Creation of dynamic property...

Open to all! Ask other shopowners for help.
Post Reply
Xpajun
Contributor
Posts: 187
Joined: Thu Mar 04, 2021 1:18 pm
Phoenix Version: v1.0.9.0
Has thanked: 3 times
Been thanked: 6 times

PHP Deprecated: Creation of dynamic property...

Post by Xpajun »

Another 8.2 error...

I understand the fix for this at the moment would be the #[AllowDynamicProperties] attribute.

Could this be added in either template_top.php or application_top.php so it fix every occurrence of the error or would it have to be in every file that has the deprecated code?
Current Store is now running 1.0.9.0 - php 8.2.18
Now working on taking a short rest :D - php 8.2.18


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: PHP Deprecated: Creation of dynamic property...

Post by ecartz »

Every file.

The more correct fix would be to simply add the property to the class. It seems to me that Burt already made those changes in the latest version.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply