api-platform / api-platform/schema-generator

Support PHP 8.1 enum

Open
#406 0 comments 4 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
474
Forks
107
PR merge metrics
No merged PRs in 30d

Description

**Description**
Currently, the Schema Generator only supports enums through [myclabs/php-enum](https://github.com/myclabs/php-enum). Since 8.1, PHP natively supports enum. The Schema Generator should use it instead of myclabs/php-enum.

To do so, we should bump PHP version to 8.1, as it's already done in [api-platform/core](https://github.com/api-platform/core).

**Example**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.