Deprecations for PHP 8.1 get_class() and get_called_class() without argument

Open Natallia requested to merge issue/drupal-3351004:3351004-deprecations-for-php into 9.5.x

Closes #3351004 Deprecations for PHP 8.1 get_class() and get_called_class() without argument: Apply changes to Drupal Core according to https://wiki.php.net/rfc/deprecations_php_8_1: get_class() -> self::class get_called_class -> static::class

Merge request reports