Skip to content

Commit a121fdb

Browse files
committed
Fixed bug #2465 : Excluding a sniff by path is not working
1 parent f0ff791 commit a121fdb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
3131
- Fixed bug #2452 : LowercasePHPFunctions sniff failing on "new \File()"
3232
- Fixed bug #2453 : Squiz.CSS.SemicolonSpacingSniff false positive when style name proceeded by an asterisk
3333
-- Thanks to Juliette Reinders Folmer for the patch
34+
- Fixed bug #2465 : Excluding a sniff by path is not working
3435
</notes>
3536
<contents>
3637
<dir name="/">

src/Ruleset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public function processRuleset($rulesetPath, $depth=0)
467467
} else {
468468
$excludedSniffs = array_merge(
469469
$excludedSniffs,
470-
$this->expandRulesetReference($exclude['name'], $rulesetDir, ($depth + 1))
470+
$this->expandRulesetReference((string) $exclude['name'], $rulesetDir, ($depth + 1))
471471
);
472472
}
473473
}//end foreach

0 commit comments

Comments
 (0)