Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.4.2

Bug #15624 Pre-commit hook fails with PHP errors
Submitted: 2009-01-13 18:24 UTC
From: inghamn Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.2.0a1)
PHP Version: 5.2.8 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2009-01-13 18:24 UTC] inghamn (Cliff Ingham)
Description: ------------ Trying to get phpcs-svn-pre-commit hooked into subversion. There seems to be some errors in CLI.php Missing Arguments and undefined variables Test script: --------------- /usr/local/PHP_CodeSniffer/scripts/phpcs-svn-pre-commit "$REPOS" -t "$TXN" >&2 Actual result: -------------- PHP Warning: Missing argument 4 for PHP_CodeSniffer_CLI::printErrorReport(), called in /usr/local/PHP_CodeSniffer/scripts/phpcs-svn-pre-commit on line 154 anddefined in /usr/local/PHP_CodeSniffer/CodeSniffer/CLI.php on line 415 Warning: Missing argument 4 for PHP_CodeSniffer_CLI::printErrorReport(), calledin /usr/local/PHP_CodeSniffer/scripts/phpcs-svn-pre-commit on line 154 and defined in /usr/local/PHP_CodeSniffer/CodeSniffer/CLI.php on line 415 PHP Notice: Undefined variable: showSources in /usr/local/PHP_CodeSniffer/CodeSniffer/CLI.php on line 441 Notice: Undefined variable: showSources in /usr/local/PHP_CodeSniffer/CodeSniffer/CLI.php on line 441

Comments

 [2009-01-14 02:44 UTC] squiz (Greg Sherwood)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.