Skip to content

notice in php --rf class::method #21754

Closed

Description

@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?

Activity

  1. DanielEScherzer commented on Apr 14, 2026

    @DanielEScherzer
    Member

    Presumably affects 8.4+ when that was deprecated

  2. added a commit that references this issue on Apr 14, 2026
  3. added 3 commits that reference this issue on Apr 15, 2026
  4. DanielEScherzer commented on Apr 15, 2026

    @DanielEScherzer
    Member

    Not sure why GitHub didn't close this automatically when the PR was merged...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions