We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a9aaa commit 06e4d8fCopy full SHA for 06e4d8f
language/enumerations.xml
@@ -192,8 +192,10 @@ enum Suit: string
192
</para>
193
194
<para>
195
- Equivalent values must be literals or literal expressions. Constants and constant expressions
196
- are not supported. That is, <literal>1 + 1</literal> is allowed, but <literal>1 + SOME_CONST</literal>
+ The equivalent values may be a constant scalar expression.
+ Prior to PHP 8.2.0, the equivalent values had to be literals or literal expressions.
197
+ This means that constants and constant expressions were not supported.
198
+ That is, <code>1 + 1</code> was allowed, but not <code>1 + SOME_CONST</code>.
199
is not.
200
201
0 commit comments