Skip to content

Commit

Permalink
Fixed bug squizlabs#2348 : Cache not invalidated when changing a rule…
Browse files Browse the repository at this point in the history
…set included by another
  • Loading branch information
gsherwood committed Jan 21, 2019
1 parent cbe9b4e commit e8eb10d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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
</notes>
<contents>
<dir name="/">
Expand Down
4 changes: 2 additions & 2 deletions src/Ruleset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -334,6 +333,7 @@ public function processRuleset($rulesetPath, $depth=0)
$includedSniffs = [];
$excludedSniffs = [];

$this->paths[] = $rulesetPath;
$rulesetDir = dirname($rulesetPath);
$this->rulesetDirs[] = $rulesetDir;

Expand Down

0 comments on commit e8eb10d

Please sign in to comment.