This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Initializing a result set with empty array produces warning on PHP 7.2 #295
Closed
Description
This produces a warning on PHP 7.2:
$input = array(); // May actually be the result of another operation
$resultSet = new \Zend\Db\ResultSet\ResultSet;
$resultSet->initialize($input);
count(): Parameter must be an array or an object that implements Countable
in ResultSet/AbstractResultSet.php, line 80
Since initializing a ResultSet with an array is perfectly valid, an empty array should be accounted for.
Metadata
Metadata
Assignees
Labels
No labels