Skip to content

Commit

Permalink
Merge branch 'php-notice-extensions' of https://github.com/klausi/PHP…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Jun 24, 2016
2 parents ed73bd3 + d418df7 commit dfc8bad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CodeSniffer/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,9 @@ public function processLongArgument($arg, $pos)
$this->values['standard'] = explode(',', $standards);
}
} else if (substr($arg, 0, 11) === 'extensions=') {
if (isset($this->values['extensions']) === false) {
$this->values['extensions'] = array();
}
$this->values['extensions'] = array_merge($this->values['extensions'], explode(',', substr($arg, 11)));
} else if (substr($arg, 0, 9) === 'severity=') {
$this->values['errorSeverity'] = (int) substr($arg, 9);
Expand Down

0 comments on commit dfc8bad

Please sign in to comment.