Skip to content

Commit

Permalink
Sort list of installed paths before saving for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfodness committed Dec 7, 2020
1 parent 8223172 commit 9d7607e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ private function saveInstalledPaths()
{
// Check if we found installed paths to set.
if (count($this->installedPaths) !== 0) {
sort($this->installedPaths);
$paths = implode(',', $this->installedPaths);
$arguments = array('--config-set', self::PHPCS_CONFIG_KEY, $paths);
$configMessage = sprintf(
Expand Down

0 comments on commit 9d7607e

Please sign in to comment.