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

PHP 7.4 compatibility: warning and error #118

Open
noraj opened this issue Jun 16, 2022 · 0 comments
Open

PHP 7.4 compatibility: warning and error #118

noraj opened this issue Jun 16, 2022 · 0 comments

Comments

@noraj
Copy link

noraj commented Jun 16, 2022

Every scan command ends with:

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /tmp/iniscan/vendor/psecio/iniscan/src/Psecio/Iniscan/Command/ScanCommand/Output/Console.php on line 101
Script iniscan handling the __exec_command event returned with error code 1

For the warning, I doesn't seem that count()is used here:

it may be a cascading from

return (count($parts) === 1)

or

return (count($parts) == 1) ? 'PHP' : $parts[0];

https://www.php.net/manual/en/function.count.php

For the error (2nd line) however, it comes only when using composer, eg. composer exec iniscan scan -- --path=/path/to/php.ini instead of vendor/bin/iniscan scan --path=/path/to/php.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant