Add support for PHP 8.1 Backed Enums in Select, Checkboxes, Radio elements

Created on 16 November 2021, about 3 years ago
Updated 7 December 2023, about 1 year ago

Problem/Motivation

PHP 8.1 comes with support for Backed Enums
It makes sense to be able to use them for select, radio and checkboxes elements as the value for #options

Proposed resolution

Support using an Backed Enum for #options

Remaining tasks


  • Change record

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Needs work

Version

11.0 🔥

Component
Options 

Last updated 2 days ago

No maintainer
Created by

🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024