Issue #3322003 by poker10: [D7 PHP 8.2] Fix Deprecated function: Creation of dynamic property in tests