Help 4.5 Deprecation

Any one can help me about how to solve this deprecation:

notice: 4.5.0 - Dynamic properties will be removed in PHP 8.2. Add public $arName= null; to your class definition


Have you tried adding public $arName = null; to your class?

Yes, it is a component, the var is in a public function inside the component, I have tried to public $var = null at the beginning of the method class, but no look.

Perhaps this will help you to understand the issue, and the various solutions.