Since PHP 8.2, adding a new property to an object at runtime is deprecated, and such that you shouldn’t do this anymore. Example: When you do this, the property $tiems is dynamically created as untyped public properties, but in the future, you
[Fix] Creation of dynamic property is deprecated since PHP 8.2
![[Fix] Creation of dynamic property is deprecated since PHP 8.2 [Fix] Creation of dynamic property is deprecated since PHP 8.2](https://sanjeebaryal.com.np/wp-content/uploads/2023/08/Creation-of-dynamic-property-750x350.png)



