Skip to content

ext/xml: set_*_handler() functions allows to set relative method names for callables #9970

@Girgias

Description

@Girgias

While doing some refactoring on ext/xml I discovered that the callable handler parameter has some rather strange semantics, in that it allows to set a method name to be called on the object set via xml_set_object()

Don't know if you want to fix this, but just raising awareness.

https://phpstan.org/r/cacb12c0-9730-41db-a969-f23ca0d27351

Related to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions