From 9d7607efd63026466e2f6a28879dd079a51fdca8 Mon Sep 17 00:00:00 2001 From: kevinfodness Date: Mon, 7 Dec 2020 11:55:12 -0500 Subject: [PATCH] Sort list of installed paths before saving for consistency --- src/Plugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Plugin.php b/src/Plugin.php index 0591f2f9..c87f7630 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -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(