Closed ostark closed 6 years ago
In PHP 7.2 counting non-countable types throws a warning: http://php.net/manual/de/migration72.incompatible.php#migration72.incompatible.warn-on-non-countable-types
$icons can be type of array or null https://github.com/Dolphiq/craft3-iconpicker/blob/efadc1359ad4ae4fc90e2bbaeda28f58b28f10d6/src/fields/Iconpicker.php#L212-L214
$icons
This additional check should prevent this warning
Warning: count(): Parameter must be an array or an object that implements Countable
In PHP 7.2 counting non-countable types throws a warning: http://php.net/manual/de/migration72.incompatible.php#migration72.incompatible.warn-on-non-countable-types
$icons
can be type of array or null https://github.com/Dolphiq/craft3-iconpicker/blob/efadc1359ad4ae4fc90e2bbaeda28f58b28f10d6/src/fields/Iconpicker.php#L212-L214This additional check should prevent this warning