Skip to content

Deprecation: Calling get_class() without arguments is deprecated in PHP 8.3 #442

Description

@GoodGreat

Description

After upgrading to PHP 8.3, the package throws a deprecation warning in FieldFormatter.php. PHP 8.3 requires get_class() to be called with an object argument explicitly.

Error Message

PHP Deprecated: Calling get_class() without arguments is deprecated in .../Venturecraft/Revisionable/FieldFormatter.php on line 39

Environment

  • PHP Version: 8.3
  • Package Version: 1.42.0

Suggested Fix

Pass $this (or the relevant object) to get_class() to ensure compatibility with PHP 8.3 and future-proof the codebase for PHP 9.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions