appendices/migration80/incompatible.xml
b94d63fc0884d83ba43433ab33cc4810d955bf6d
b94d63fc0884d83ba43433ab33cc4810d955bf6d
...
...
@@ -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>
...
...
@@ -1637,7 +1645,7 @@ echo file_get_contents('http://example.org', false, $ctx);
1637
1645
<title>XMLReader</title>
1638
1646
1639
1647
<para>
1640
-
<methodname>XMLReader::open</methodname> and <methodname>XMLReader::xml</methodname> are now
1648
+
<methodname>XMLReader::open</methodname> and <methodname>XMLReader::XML</methodname> are now
1641
1649
static methods. They can still be called as instance methods, but inheriting classes need to declare them
1642
1650
as static if they override these methods.
1643
1651
</para>
1644
1652