Skip to content

Commit 8c5761d

Browse files
committed
Added a note in UPGRADING about the new count() warning
1 parent ce89c55 commit 8c5761d

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
@@ -108,6 +108,8 @@ PHP 7.2 UPGRADE NOTES
108108
'Multiple' => ['One header', 'Another header'],
109109
'Multiline' = "FirstLine\r\n SecondLine",
110110
];
111+
. count() now raises a warning when an invalid parameter is passed.
112+
Only arrays and objects implementing the Countable interface should be passed.
111113

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

0 commit comments

Comments
 (0)