Skip to content

Commit 40e4bf8

Browse files
authored
Move JSON_ERROR_NON_BACKED_ENUM constant (#4524)
1 parent 37b7b83 commit 40e4bf8

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

reference/json/constants.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,19 @@
144144
</simpara>
145145
</listitem>
146146
</varlistentry>
147+
<varlistentry xml:id="constant.json-error-non-backed-enum">
148+
<term>
149+
<constant>JSON_ERROR_NON_BACKED_ENUM</constant>
150+
(<type>int</type>)
151+
</term>
152+
<listitem>
153+
<simpara>
154+
The value passed to <function>json_encode</function>
155+
includes a non-backed enum which cannot be serialized.
156+
Available as of PHP 8.1.0.
157+
</simpara>
158+
</listitem>
159+
</varlistentry>
147160
</variablelist>
148161

149162
<para>
@@ -368,19 +381,6 @@
368381
</simpara>
369382
</listitem>
370383
</varlistentry>
371-
<varlistentry xml:id="constant.json-error-non-backed-enum">
372-
<term>
373-
<constant>JSON_ERROR_NON_BACKED_ENUM</constant>
374-
(<type>int</type>)
375-
</term>
376-
<listitem>
377-
<simpara>
378-
The value passed to <function>json_encode</function>
379-
includes a non-backed enum which cannot be serialized.
380-
Available as of PHP 8.1.0.
381-
</simpara>
382-
</listitem>
383-
</varlistentry>
384384
</variablelist>
385385

386386
</appendix>

0 commit comments

Comments
 (0)