Skip to content

Add ReflectionConstant::getExtension() #16571

Closed
@vudaltsov

Description

@vudaltsov

Description

Very happy to see ReflectionConstant in PHP 8.4.

I would like to propose adding ReflectionConstant::getExtensionName(): false|string and ReflectionConstant::getExtension(): ?ReflectionExtension as in ReflectionClass and ReflectionFunction.

Currently to get constant's extension one has to parse get_defined_constants(categorize: true).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions