Skip to content

Deprecated ReflectionMethod warning when editing a post (WP_DEBUG set to true) under PHP v8.5.1 #78124

@Presskopp

Description

@Presskopp

Description

Method ReflectionMethod::setAccessible() is deprecated since 8.5, as it has no effect since PHP 8.1 in ...plugins\gutenberg\lib\compat\wordpress-7.0\script-modules.php on line 59

Step-by-step reproduction instructions

see https://core.trac.wordpress.org/ticket/64848#comment:5

Screenshots, screen recording, code snippet

Image

Environment info

  • WP 7.0-RC3-62340
  • GB 23.1.1

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions