Skip to content

Commit e8eb10d

Browse files
committed
Fixed bug #2348 : Cache not invalidated when changing a ruleset included by another
1 parent cbe9b4e commit e8eb10d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
7575
- Zend.Files.ClosingTag no longer adds a semi-colon during fixing of a file that only contains a comment
7676
-- Thanks to Juliette Reinders Folmer for the patch
7777
- Fixed bug #2337 : Generic.WhiteSpace.ScopeIndent incorrect error when multi-line function call starts on same line as open tag
78+
- Fixed bug #2348 : Cache not invalidated when changing a ruleset included by another
7879
</notes>
7980
<contents>
8081
<dir name="/">

src/Ruleset.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ public function __construct(Config $config)
161161
$this->name .= ', ';
162162
}
163163

164-
$this->name .= $standardName;
165-
$this->paths[] = $standard;
164+
$this->name .= $standardName;
166165

167166
// Allow autoloading of custom files inside this standard.
168167
if (isset($ruleset['namespace']) === true) {
@@ -334,6 +333,7 @@ public function processRuleset($rulesetPath, $depth=0)
334333
$includedSniffs = [];
335334
$excludedSniffs = [];
336335

336+
$this->paths[] = $rulesetPath;
337337
$rulesetDir = dirname($rulesetPath);
338338
$this->rulesetDirs[] = $rulesetDir;
339339

0 commit comments

Comments
 (0)