Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support for enums in existence checks #40232

Copy link
Copy link
Closed
@stof

Description

@stof
Issue body actions

We have several places in the framework checking for existence of arbitrary class names, allowing classes, interfaces or traits (see #40140 for instance which adds such a usage, but I'm almost sure we have others elsewhere).
As PHP 8.1 will introduce the support of enums (the RFC has been accepted), these places should be updated to also check enum_exists

symfony/polyfill#335 might help here to avoid checking for the availability of enum_exists|

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help wantedIssues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.