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)
#2 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(830): PHP_CodeSniffer->initStandard(Array, Array)
#3 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(95): PHP_CodeSniffer_CLI->process()
#4 /home/travis/build/photodude/joomla-cms/libraries/vendor/squizlabs/php_codesniffer/scripts/phpcs(25): PHP_CodeSniffer_CLI->runphpcs()
#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 Jun 13, 2015
1 parent 0e57266 commit 1ecf55c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/phpcs/Joomla/Sniffs/Commenting/ClassCommentSniff.php
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 1ecf55c

Please sign in to comment.