### Description cli mode: `php --rf 'ReflectionMethod::__construct'` i get this notice: ``` Deprecated: Calling ReflectionMethod::__construct() with 1 argument is deprecated, use ReflectionMethod::createFromMethodName() instead in Unknown on line 0 Method [ <internal:Reflection, ctor> public method __construct ] { - Parameters [2] { Parameter #0 [ <required> object|string $objectOrMethod ] Parameter #1 [ <optional> ?string $method = null ] } } ``` can we remove the notice part?
Activity
DanielEScherzer commentedon Apr 14, 2026
Presumably affects 8.4+ when that was deprecated
phpGH-21754: sapi/cli: avoid deprecation messages with `--rf` and met…
GH-21754: sapi/cli: avoid deprecation messages with `--rf` and methods (
Merge branch 'PHP-8.4' into PHP-8.5
Merge branch 'PHP-8.5'
DanielEScherzer commentedon Apr 15, 2026
Not sure why GitHub didn't close this automatically when the PR was merged...