php-cs-fixer-commit
php-cs-fixer-commit copied to clipboard
[Gitlab CI] You must call one of in() or append() methods before iterating over a Finder.
Hello! I found your software and it was exactly what I need, so thanks in advance for posting it.
I'm running into a issue when trying to integrate the php-cs-fixer-commit into a Gitlab CI pipeline.
The output complains about the PHP CS Fixer version (offtopic: could I help with this? what is needed? Upgrade composer's version and test it?) but after that it throws an error in Finder.php and then never finds any changes.
$ vendor/bin/php-cs-fixer-commit <user> <mail>
You are running PHP CS Fixer v2, which is not maintained anymore. Please update to v3.
If you need help while solving warnings, ask at https://gitter.im/PHP-CS-Fixer, we will help you!
Loaded config default.
In Finder.php line 611:
You must call one of in() or append() methods before iterating over a Finde
r.
fix [--path-mode PATH-MODE] [--allow-risky ALLOW-RISKY] [--config CONFIG] [--dry-run] [--rules RULES] [--using-cache USING-CACHE] [--cache-file CACHE-FILE] [--diff] [--diff-format DIFF-FORMAT] [--format FORMAT] [--stop-on-violation] [--show-progress SHOW-PROGRESS] [--] [<path>...]
Removing composer.lock
## HEAD (no branch)
No changes.
Cleaning up file based variables
Could someone help me with this? I've done some research, but it seems to be an issue related to PHP CS Fixer and I'm missing where and how I can change the Finder file.
Should I create a PHP CS Fixer config file in the root of the repository?
Thanks again,
Regards.