Skip to content

Commit 9da5efd

Browse files
committed
Mention that enums must be backed enums
1 parent 7c4efe8 commit 9da5efd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/forms/types/enum.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Example Usage
3030
-------------
3131

3232
Before using this field, you'll need to have some PHP enumeration (or "enum" for
33-
short) defined somewhere in your application::
33+
short) defined somewhere in your application. This enum has to be of type
34+
"backed enum", where each keyword defines a scalar value such a string::
3435

3536
// src/Config/TextAlign.php
3637
namespace App\Config;

0 commit comments

Comments
 (0)