Details
-
Type: Task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.4.0-b1
-
Component/s: None
-
Labels:None
Description
In php 7.2+, a warning/error is raised if the count() function is called on something that is not Countable, such as null. The Emails model does this with CC, BCC, and attachments, and should be updated to ensure we only count() on Countable interfaces.
count(): Parameter must be an array or an object that implements Countable on line 846 in /app/models/emails.php