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'

CommentFileSizeAuthor
#2 issue-3058496.patch837 byteshobocta

Comments

bobburns created an issue. See original summary.

hobocta’s picture

StatusFileSize
new837 bytes

I have the same problem. Attached a patch with a solution.

Christopher Riley’s picture

Even 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?

ecvandenberg’s picture

Perhaps clearing the cache?
Patch solved the warning for me. PHP 7.3.21

damienmckenna’s picture

Status: Active » Needs work