Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
ruscoe opened this issue Mar 19, 2023 · 2 comments
Closed
1 task done
Assignees
Labels

Comments

@ruscoe
Copy link

ruscoe commented Mar 19, 2023

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

  • Device: PC
  • OS: Ubuntu 22.04.2 LTS

WordPress information

WordPress 6.1.1

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jeffpaul
Copy link
Member

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

@ruscoe
Copy link
Author

ruscoe commented Mar 21, 2023

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 👍

@ruscoe ruscoe closed this as completed Mar 21, 2023
@jeffpaul jeffpaul removed this from the 1.2.0 milestone May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants