Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When the Drush command does not find any string, it displays this warning :
[warning] count(): Parameter must be an array or an object that implements Countable PotxCommands.php:116
Steps to reproduce
drush potx --folder path/without/translatable/strings/
Comment | File | Size | Author |
---|---|---|---|
#2 | potx-3180277-2.patch | 514 bytes | prudloff |
Comments
Comment #2
prudloff CreditAttribution: prudloff at Insite commentedThe attached patch fixes the warning.
Comment #3
Tess BakkerNo longer an issue in the latest dev version.