Skip to content

Sublime Text 3 sublime-phpcs package --using-cache=off is getting an error it should be "yes" or "no" #202

@skeeith

Description

@skeeith

Bug report

Before reporting a bug, make sure PHP CS Fixer is up-to-date.

Please describe the problem and provide technical details such as:

  • PHP version: 8.0.6
  • PHP CS Fixer version: 3.0.0
  • the command used to run PHP CS Fixer (run with -vvv)
In ConfigurationResolver.php line 831:

[PhpCsFixer\ConfigurationException\InvalidConfigurationException (16)]
Expected "yes" or "no" for option "using-cache", got "off".


Exception trace:
at C:\Users\gethe\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\ConfigurationResolver.php:831
PhpCsFixer\Console\ConfigurationResolver->resolveOptionBooleanValue() at C:\Users\gethe\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\ConfigurationResolver.php:448
PhpCsFixer\Console\ConfigurationResolver->getUsingCache() at C:\Users\gethe\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\Command\FixCommand.php:274
PhpCsFixer\Console\Command\FixCommand->execute() at C:\Users\gethe\AppData\Roaming\Composer\vendor\symfony\console\Command\Command.php:256
Symfony\Component\Console\Command\Command->run() at C:\Users\gethe\AppData\Roaming\Composer\vendor\symfony\console\Application.php:971
Symfony\Component\Console\Application->doRunCommand() at C:\Users\gethe\AppData\Roaming\Composer\vendor\symfony\console\Application.php:290
Symfony\Component\Console\Application->doRun() at C:\Users\gethe\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\src\Console\Application.php:97
PhpCsFixer\Console\Application->doRun() at C:\Users\gethe\AppData\Roaming\Composer\vendor\symfony\console\Application.php:166
Symfony\Component\Console\Application->run() at C:\Users\gethe\AppData\Roaming\Composer\vendor\friendsofphp\php-cs-fixer\php-cs-fixer:113
  • the configuration (file) you used: using a Sublime Text 3 .phpcsfixer file
return PhpCsFixer\Config::create()->setRules([
 '@PSR1'             => true,
 '@PSR2'             => true,
 'array_syntax'      => [
     'syntax' => 'short'
 ],
 'no_unused_imports' => true
]);

I'm using Sublime Text 3 SublimeLinter-PHPCSFixer package to auto initiate this.
Can you guys update the command that is being run? to use --using-cache=off

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions