appendices/migration80/incompatible.xml
61374bbe228e8e9c55a24aba59a1e2bb2a871148
...
...
@@ -310,6 +310,10 @@ function test(int $arg = null) {}
310
310
Passing the wrong number of arguments to a non-variadic built-in
311
311
function will throw an <classname>ArgumentCountError</classname>.
312
312
</member>
313
+
<member>
314
+
Passing invalid countable types to <function>count</function> will throw
315
+
a <classname>TypeError</classname>.
316
+
</member>
313
317
</simplelist>
314
318
</para>
315
319
<para>
...
...
@@ -1618,18 +1622,18 @@ echo file_get_contents('http://example.org', false, $ctx);
1618
1622
<itemizedlist>
1619
1623
<listitem>
1620
1624
<para>
1621
-
<literal>T_COMMENT</literal> tokens will no longer include a trailing newline. The newline will
1622
-
instead be part of a following <literal>T_WHITESPACE</literal> token. It should be noted that
1623
-
<literal>T_COMMENT</literal> is not always followed by whitespace, it may also be followed by
1624
-
<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.
1625
1629
</para>
1626
1630
</listitem>
1627
1631
<listitem>
1628
1632
<para>
1629
-
Namespaced names are now represented using the <literal>T_NAME_QUALIFIED</literal>
1630
-
(<code>Foo\Bar</code>), <literal>T_NAME_FULLY_QUALIFIED</literal> (<code>\Foo\Bar</code>) and
1631
-
<literal>T_NAME_RELATIVE</literal> (<code>namespace\Foo\Bar</code>) tokens.
1632
-
<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
1633
1637
syntactially valid in conjunction with group use declarations.
1634
1638
<!-- RFC: https://wiki.php.net/rfc/namespaced_names_as_token -->
1635
1639
</para>
1636
1640