diff --git a/package.xml b/package.xml index c3c915569d..fb15b69458 100644 --- a/package.xml +++ b/package.xml @@ -75,6 +75,7 @@ http://pear.php.net/dtd/package-2.0.xsd"> - Zend.Files.ClosingTag no longer adds a semi-colon during fixing of a file that only contains a comment -- Thanks to Juliette Reinders Folmer for the patch - Fixed bug #2337 : Generic.WhiteSpace.ScopeIndent incorrect error when multi-line function call starts on same line as open tag + - Fixed bug #2348 : Cache not invalidated when changing a ruleset included by another diff --git a/src/Ruleset.php b/src/Ruleset.php index 7978938abd..1e95756ef0 100644 --- a/src/Ruleset.php +++ b/src/Ruleset.php @@ -161,8 +161,7 @@ public function __construct(Config $config) $this->name .= ', '; } - $this->name .= $standardName; - $this->paths[] = $standard; + $this->name .= $standardName; // Allow autoloading of custom files inside this standard. if (isset($ruleset['namespace']) === true) { @@ -334,6 +333,7 @@ public function processRuleset($rulesetPath, $depth=0) $includedSniffs = []; $excludedSniffs = []; + $this->paths[] = $rulesetPath; $rulesetDir = dirname($rulesetPath); $this->rulesetDirs[] = $rulesetDir;