Skip to content

Method ReflectionMethod::setAccessible() is deprecated since 8.5 #78474

Closed

Description

@wolffe

Description

I am getting a deprecated error:

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

Gutenberg verison 23.1.1.

Step-by-step reproduction instructions

  1. Install Gutenberg 23.1.1.
  2. Check the Query Monitor output

Screenshots, screen recording, code snippet

No response

Environment info

  • WordPress 7.0 RC1, RC2, RC3, RC4, RC5
  • Gutenberg 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] Bug
    on May 20, 2026
  2. Mayank-Tripathi32 commented on May 20, 2026

    @Mayank-Tripathi32
    Member

    I think this might be related to #78137 I will check if similar fix can be applied here

  3. added
    [Status] In Progress
    on May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Status] In Progress[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions