appendices/migration80/incompatible.xml
61374bbe228e8e9c55a24aba59a1e2bb2a871148
...
...
@@ -306,6 +306,14 @@ function test(int $arg = null) {}
306
306
Attempting to access unqualified constants which are undefined.
307
307
Previously, unqualified constant accesses resulted in a warning and were interpreted as strings.
308
308
</member>
309
+
<member>
310
+
Passing the wrong number of arguments to a non-variadic built-in
311
+
function will throw an <classname>ArgumentCountError</classname>.
312
+
</member>
313
+
<member>
314
+
Passing invalid countable types to <function>count</function> will throw
315
+
a <classname>TypeError</classname>.
316
+
</member>
309
317
</simplelist>
310
318
</para>
311
319
<para>
...
...
@@ -1614,18 +1622,18 @@ echo file_get_contents('http://example.org', false, $ctx);
1614
1622
<itemizedlist>
1615
1623
<listitem>
1616
1624
<para>
1617
-
<literal>T_COMMENT</literal> tokens will no longer include a trailing newline. The newline will
1618
-
instead be part of a following <literal>T_WHITESPACE</literal> token. It should be noted that
1619
-
<literal>T_COMMENT</literal> is not always followed by whitespace, it may also be followed by
1620
-
<literal>T_CLOSE_TAG</literal> or end-of-file.
1625
+
<constant>T_COMMENT</constant> tokens will no longer include a trailing newline. The newline will
1626
+
instead be part of a following <constant>T_WHITESPACE</constant> token. It should be noted that
1627
+
<constant>T_COMMENT</constant> is not always followed by whitespace, it may also be followed by
1628
+
<constant>T_CLOSE_TAG</constant> or end-of-file.
1621
1629
</para>
1622
1630
</listitem>
1623
1631
<listitem>
1624
1632
<para>
1625
-
Namespaced names are now represented using the <literal>T_NAME_QUALIFIED</literal>
1626
-
(<code>Foo\Bar</code>), <literal>T_NAME_FULLY_QUALIFIED</literal> (<code>\Foo\Bar</code>) and
1627
-
<literal>T_NAME_RELATIVE</literal> (<code>namespace\Foo\Bar</code>) tokens.
1628
-
<literal>T_NS_SEPARATOR</literal> is only used for standalone namespace separators, and only
1633
+
Namespaced names are now represented using the <constant>T_NAME_QUALIFIED</constant>
1634
+
(<code>Foo\Bar</code>), <constant>T_NAME_FULLY_QUALIFIED</constant> (<code>\Foo\Bar</code>) and
1635
+
<constant>T_NAME_RELATIVE</constant> (<code>namespace\Foo\Bar</code>) tokens.
1636
+
<constant>T_NS_SEPARATOR</constant> is only used for standalone namespace separators, and only
1629
1637
syntactially valid in conjunction with group use declarations.
1630
1638
<!-- RFC: https://wiki.php.net/rfc/namespaced_names_as_token -->
1631
1639
</para>
1632
1640