PHP 8.2 RFC: Deprecate dynamic properties
|Deprecate dynamic properties|
RFC Vote: Deprecate dynamic properties
|Yes: 52No: 25|
Deprecate dynamic properties
When writing to a property that has not been declared, PHP will silently create a dynamic property instead. In modern code, this is rarely done intentionally. This RFC proposes to deprecate and later remove the creation of dynamic properties. stdClass and
__set are not affected by this change.