[PHP 8.4] ReflectionMethod constructor deprecated with one argument

Created on 30 April 2024, 7 months ago
Updated 21 May 2024, 6 months ago

Problem/Motivation

Code was added in 📌 Introduce CallableResolver to help standardise the DX and error handling for callbacks across various subsystems Fixed
The code fails on PHP 8.4 as the cause of PHP 8.3 RFC https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures

Steps to reproduce

https://3v4l.org/dQVe4/rfc

class my {
    function fu() {}
}
var_dump(new \ReflectionMethod('my::fu'));
var_dump(\ReflectionMethod::createFromMethodName('my::fu'));

Proposed resolution

As deprecation already in action and no other usages left using https://github.com/nette/di/commit/a548b1cfce285ced0f48cd046c10170349a15a3e

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.3

Component
Base 

Last updated about 1 hour ago

Created by

🇫🇷France andypost

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

Merge Requests

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.71.5 2024