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

[email protected] (plusminmax)
Newsgroups php.bugs
Message-ID <[email protected]>
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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.