Add rector for PHP 8.2 callables

Created on 29 July 2022, almost 2 years ago
Updated 26 April 2024, 2 months ago

Drupal version

10.0.x

Drupal Rector version

-dev

Problem / Motivation

Follow-up from #3299327: Replace deprecated static::method() calls for PHP 8.2 β†’

In PHP 8.2+ partially supported callables trows deprecation message but easy to replace to more performant syntax (as core 10+ requires PHP 8.1)

If compatibility with PHP < 8.1 is not desired, use of the first-class callable syntax self::method(...) is also possible.

In πŸ“Œ Replace usages of static::class . '::methodName' to first-class callable syntax static::method(...) Needs work it's also discussion about formalized approach to callables

πŸ“Œ Task
Status

Postponed: needs info

Component

Code

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.

Production build 0.69.0 2024