Remove last usage of setAccessible()

Created on 9 October 2025, 13 days ago

Problem/Motivation

The Reflection*::setAccessible() is deprecated and throws deprecation warning since PHP 8.5 beta1.
General usage was removed in 📌 Remove usage of setAccessible() when core requires PHP 8.1 Fixed and 📌 Remove remaining usage of setAccessible() Active

Steps to reproduce

drupal$ git grep setAccessible
core/tests/Drupal/Tests/Core/Theme/Icon/IconPackManagerTest.php:91:    $method->setAccessible(TRUE);

Proposed resolution

- remove remaining usage

Remaining tasks

MR, review, commit

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

RTBC

Version

11.0 🔥

Component

base system

Created by

🇫🇷France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024