Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 301158

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

$
0
0
Warning: count(): Parameter must be an array or an object that implements Countable in Drupal\views\ManyToOneHelper->addFilter() (line 311 of core/modules/views/src/ManyToOneHelper.php).

tries to get count on $value.

In case we're using php: >= 7.2.x the Warning will arrise as the $value sould be an array (or an Object imple,enting Countable), which is not always here. A controll is_array() should be added in the IF.

Soon i'll attach the patch.


Viewing all articles
Browse latest Browse all 301158

Trending Articles