Skip to content

Commit

Permalink
Fixed bug #15624 : Pre-commit hook fails with PHP errors
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/PHP_CodeSniffer/trunk@273494 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
gsherwood committed Jan 14, 2009
1 parent 0e61a6a commit a85a0ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Fixed bug #15383 : Uncaught PHP_CodeSniffer_Exception
- Fixed bug #15408 : An unexpected exception has been caught: Undefined offset: 2
- Fixed bug #15519 : Uncaught PHP_CodeSniffer_Exception
- Fixed bug #15624 : Pre-commit hook fails with PHP errors
</notes>
<contents>
<dir name="/">
Expand Down
8 changes: 7 additions & 1 deletion scripts/phpcs-svn-pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@ class PHP_CodeSniffer_SVN_Hook extends PHP_CodeSniffer_CLI
$phpcs->processFile($path, $contents);
}//end foreach

return parent::printErrorReport($phpcs, $values['report'], $values['showWarnings']);
return parent::printErrorReport(
$phpcs,
$values['report'],
$values['showWarnings'],
$values['showSources'],
$values['reportFile']
);

}//end process()

Expand Down

0 comments on commit a85a0ef

Please sign in to comment.