10up / wpcli-vulnerability-scanner

WP-CLI command for checking installed plugins and themes for vulnerabilities reported on wpvulndb.com
MIT License
278 stars 40 forks source link

Array to string conversion PHP warning when running with no arguments #87

Closed ruscoe closed 1 year ago

ruscoe commented 1 year ago

Describe the bug

If you run wp vuln status, passing no arguments, you'll see a PHP warning about an array to string conversion in wpcli-vulnerability-scanner.php on line 124.

Steps to Reproduce

  1. Install this plugin
  2. Ensure PHP is configured to show warnings
  3. Run wp vuln status
  4. You should see the PHP warning as described

Screenshots, screen recording, code snippet

PHP Warning: Array to string conversion in /var/www/wpclean.local/wp-content/plugins/wpcli-vulnerability-scanner/wpcli-vulnerability-scanner.php on line 124

Environment information

WordPress information

WordPress 6.1.1

Code of Conduct

jeffpaul commented 1 year ago

@ruscoe thanks for opening the issue and related PR, I'll get this off to the team for review... thanks!

ruscoe commented 1 year ago

It seems like I was working on an older version of the codebase and this is no longer an issue, so I'm going to close this issue :+1: