[php-src] Issue #21754: notice in php --rf class::method

From: Date: Tue, 14 Apr 2026 15:54:21 +0000
Subject: [php-src] Issue #21754: notice in php --rf class::method
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251966@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/21754 Author: plusminmax ### 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?

« previous php.bugs (#251966) next »