Description
Currently, the Schema Generator only supports enums through 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.
Description
Currently, the Schema Generator only supports enums through 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.
Example