Skip to content

Commit

Permalink
composerAutoloaderProjectPaths must be unique
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jul 14, 2024
1 parent 1845ed2 commit 2dda2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/phpstan
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ use Symfony\Component\Console\Helper\ProgressBar;
$application->setDefaultCommand('analyse');
ProgressBar::setFormatDefinition('file_download', ' [%bar%] %percent:3s%% %fileSize%');

$reversedComposerAutoloaderProjectPaths = array_reverse($composerAutoloaderProjectPaths);
$reversedComposerAutoloaderProjectPaths = array_values(array_unique(array_reverse($composerAutoloaderProjectPaths)));
$application->add(new AnalyseCommand($reversedComposerAutoloaderProjectPaths));
$application->add(new WorkerCommand($reversedComposerAutoloaderProjectPaths));
$application->add(new ClearResultCacheCommand($reversedComposerAutoloaderProjectPaths));
Expand Down

0 comments on commit 2dda2c7

Please sign in to comment.