Skip to content

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

Closed

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

Activity

  1. added
    [Type] BugAn existing feature does not function as intended
    on May 9, 2026
  2. ramonjd commented on May 11, 2026

    @ramonjd
    Member

    Looks like it was introduced here: #77214

    It's not directly related to https://core.trac.wordpress.org/ticket/64848

  3. ramonjd commented on May 11, 2026

    @ramonjd
    Member

    Follow up here: #78137

  4. added
    [Type] Code QualityIssues or PRs that relate to code quality
    and removed
    [Type] BugAn existing feature does not function as intended
    on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[Status] In ProgressTracking issues with work in progress[Type] Code QualityIssues or PRs that relate to code quality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions