Issue #3351004 by Natallia: Deprecations for PHP 8.1 get_class() and get_called_class() without argument