Skip to content

Commit

Permalink
Need ucfirst for the internal reports due to autoloading
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Apr 18, 2018
1 parent 0a6ac59 commit b0cadcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Reporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ public function __construct(Config $config)
}

$reportClassName = Autoload::loadFile($filename);
} else if (class_exists('PHP_CodeSniffer\Reports\\'.$type) === true) {
} else if (class_exists('PHP_CodeSniffer\Reports\\'.ucfirst($type)) === true) {
// PHPCS native report.
$reportClassName = 'PHP_CodeSniffer\Reports\\'.$type;
$reportClassName = 'PHP_CodeSniffer\Reports\\'.ucfirst($type);
} else if (class_exists($type) === true) {
// FQN of a custom report.
$reportClassName = $type;
Expand Down

0 comments on commit b0cadcd

Please sign in to comment.