At this time PHP CS Fixer executes via command like this
[...]/vendor/bin/php-cs-fixer fix . --some_param
Defining a dot in this command means that this directory (dot in our case) will overwrite the directories defined in .php_cs file (Details here: PHP-CS-Fixer/PHP-CS-Fixer#2094)
I think we have two solutions to fix this:
- Just remove path to directory from CLI arguments (
[...]/vendor/bin/php-cs-fixer fix --some_param).
- Check that
.php_cs or .php_cs.dist exists at the build directory, and remove path from CLI arguments if this file exists.
At this time PHP CS Fixer executes via command like this
[...]/vendor/bin/php-cs-fixer fix . --some_paramDefining a dot in this command means that this directory (dot in our case) will overwrite the directories defined in .php_cs file (Details here: PHP-CS-Fixer/PHP-CS-Fixer#2094)
I think we have two solutions to fix this:
[...]/vendor/bin/php-cs-fixer fix --some_param)..php_csor.php_cs.distexists at the build directory, and remove path from CLI arguments if this file exists.