Dynamic properties are deprecated in PHP 8.2