Skip to content

Commit

Permalink
PHP Fatal error: Uncaught exception
Browse files Browse the repository at this point in the history
```
PHP Fatal error:  Uncaught exception 'PHP_CodeSniffer_Exception' with message 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found' in /home/travis/build/photodude/joomla-cms/build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php:19
Stack trace:
#0 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1318): include_once()
#1 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer.php(560): PHP_CodeSniffer->registerSniffs(Array, Array)
joomla#2 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(830): PHP_CodeSniffer->initStandard(Array, Array)
joomla#3 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(95): PHP_CodeSniffer_CLI->process()
joomla#4 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/scripts/phpcs(25): PHP_CodeSniffer_CLI->runphpcs()
joomla#5 {main}
  thrown in /home/travis/build/photodude/joomla-cms/build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php on line 19
```
  • Loading branch information
photodude committed May 15, 2015
1 parent 6afa2d6 commit e6fe557
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* @link http://pear.php.net/package/PHP_CodeSniffer
*/

if (class_exists('PHP_CodeSniffer_CommentParser_ClassCommentParser', true) === false) {
$error = 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found';
throw new PHP_CodeSniffer_Exception($error);
}

/**if (class_exists('PHP_CodeSniffer_CommentParser_ClassCommentParser', true) === false) {
* $error = 'Class PHP_CodeSniffer_CommentParser_ClassCommentParser not found';
* throw new PHP_CodeSniffer_Exception($error);
*}
*/
require_once 'FileCommentSniff.php';

if (class_exists('Joomla_Sniffs_Commenting_FileCommentSniff', true) === false) {
Expand Down

0 comments on commit e6fe557

Please # to comment.