Skip to content

Commit c701975

Browse files
committed
Only include the custom autoload file once.
1 parent 3d1fac3 commit c701975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ruleset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public function processRuleset($rulesetPath, $depth=0)
341341
throw new RuntimeException('The specified autoload file "'.$autoload.'" does not exist');
342342
}
343343

344-
include $autoloadPath;
344+
include_once $autoloadPath;
345345

346346
if (PHP_CODESNIFFER_VERBOSITY > 1) {
347347
echo str_repeat("\t", $depth);

0 commit comments

Comments
 (0)