Skip to content

Make trigger_deprecation namespaced #47904

Closed
@theofidry

Description

@theofidry

Description

The trigger_deprecation provided by symfony/deprecation-contracts is registered in the global namespace. I really don't think it's a good practice to register functions in the global namespace for a variety of reasons, neither is there any drawbacks not to.

Would you be open to this change?

Alternatively it would also not be a bad idea to provide a static function instead as function autoloading in PHP is a bit meh:

Symfony\Deprecation::trigger(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ContractsRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions