Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

count(): Parameter must be an array or an object that implements Countable #20

Open
brambeekman opened this issue Nov 11, 2019 · 1 comment

Comments

@brambeekman
Copy link

78910111213141516171819202122232425 *

  • @var string $name
  • @var \plugins\dolphiq\iconpicker\models\IconpickerModel $value
  • @var \plugins\dolphiq\iconpicker\fields\Iconpicker $field
  • @var array $icons
    */

$field->getFontCss();

if (count($icons) > 0) {
?>

@chrisrowe
Copy link

chrisrowe commented Jan 8, 2020

Seeing the same issue here, I assume related to a recent change in Craft

PHP Warning – yii\base\ErrorException
count(): Parameter must be an array or an object that implements Countable
1. in /Users/chrisrowe/Sites/REDACTED/vendor/dolphiq/iconpicker/src/views/main/_field.php at line 16

if (count($icons) > 0) {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants