Skip to content

Commit 68b5e2c

Browse files
authored
mixed is a reserved word (not keyword!) as of PHP 8.0.0. (#938)
1 parent 8b00eb9 commit 68b5e2c

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

appendices/migration80/incompatible.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
<literal>match</literal> is now a reserved keyword.
7272
</para>
7373
</listitem>
74+
<listitem>
75+
<para>
76+
<literal>mixed</literal> is now a reserved word, so it cannot be used to name a class, interface or trait, and is also prohibited from being used in namespaces.
77+
</para>
78+
</listitem>
7479
<listitem>
7580
<para>
7681
Assertion failures now throw by default. If the old behavior is desired,

appendices/reserved.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,9 @@
549549
<entry>
550550
object (as of PHP 7.2)
551551
</entry>
552+
<entry>
553+
mixed (as of PHP 8.0)
554+
</entry>
552555
</row>
553556
</tbody>
554557
</tgroup>
@@ -569,9 +572,6 @@
569572
<entry>
570573
resource
571574
</entry>
572-
<entry>
573-
mixed
574-
</entry>
575575
<entry>
576576
numeric
577577
</entry>

0 commit comments

Comments
 (0)