In composer manager install this error from the line below throws
'value' => format_plural(count($vulnerabilities), '@count security advisory.', '@count security advisories.'),
Got error 'PHP message: PHP Warning: count(): Parameter must be an array or an object that implements Countable in . . . composer_manager_sa.install on line 35'
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | issue-3058496.patch | 837 bytes | hobocta |
Comments
Comment #2
hobocta commentedI have the same problem. Attached a patch with a solution.
Comment #3
Christopher Riley commentedEven with the patch I am still getting:
Warning: count(): Parameter must be an array or an object that implements Countable in composer_manager_sa_requirements() (line 35 of /home/sites/sitename/public_html/sites/all/modules/contrib/composer_manager/composer_manager_sa/composer_manager_sa.install).
Suggestions?
Comment #4
ecvandenberg commentedPerhaps clearing the cache?
Patch solved the warning for me. PHP 7.3.21
Comment #5
damienmckenna