Skip to content

Commit 55ddbbd

Browse files
committed
Added a note in UPGRADING about the new count() warning
1 parent 0046fb0 commit 55ddbbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UPGRADING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ PHP 7.2 UPGRADE NOTES
6464
'Multiple' => ['One header', 'Another header'],
6565
'Multiline' = "FirstLine\r\n SecondLine",
6666
];
67+
. count() now raises a warning when an invalid parameter is passed.
68+
Only arrays and objects implementing the Countable interface should be passed.
6769

6870
- XML:
6971
. utf8_encode() and utf8_decode() have been moved to the Standard extension

0 commit comments

Comments
 (0)