stechstudio / Laravel-PHP-CS-Fixer

Artisan Command for FriendsOfPHP/PHP-CS_Fixer
MIT License
146 stars 28 forks source link

Class PhpCsFixer\Report\ReportSummary not found #28

Closed ALTELMA closed 3 years ago

ALTELMA commented 3 years ago

I've found PhpCsFixer has a new release v2.18.6 and no have ReportSummary class anymore. I've got an error when running the fixer command.

Class "PhpCsFixer\Report\ReportSummary" not found

  at vendor/stechstudio/laravel-php-cs-fixer/src/Console/FixCommand.php:97
     93▕         $progressOutput->printLegend();
     94▕ 
     95▕         $fixEvent = $this->stopwatch->getEvent('fixFiles');
     96▕ 
  ➜  97▕         $reportSummary = new ReportSummary(
     98▕             $changed,
     99▕             $fixEvent->getDuration(),
    100▕             $fixEvent->getMemory(),
    101▕             OutputInterface::VERBOSITY_VERBOSE <= $this->getOutput()->getVerbosity(),

      +13 vendor frames 
  14  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

Please let me know when you fix this issue. Now I fix the version of PhpCsFixer at 2.18.5 to avoid this issue.

scramatte commented 3 years ago

Same issue here.

stasadev commented 3 years ago

The fix is ready to merge, but I'm afraid no one is working on this repo right now, I already posted another fix a month ago and no one has merged it.

bubba-h57 commented 3 years ago

Merged. I'll release it soon.