Modify ↓
Ticket #458 (closed defect: fixed)
PHPCodeSniffer Task throws Exceptions
| Reported by: | dmitrybelyakov@… | Owned by: | mrook |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4.1 |
| Component: | phing-core | Version: | 2.4.0 |
| Keywords: | coding standards | Cc: |
Description
When calling a PHP CodeSniffer task even the simplest one from the refference guide like so:
<phpcodesniffer
standard="PEAR" format="summary" file="${project.basedir}" allowedFileExtensions="php"/>
causes the task to fail with an Exception:
Fatal error: Call to undefined method PHP_CodeSniffer::printErrorReportSummary() in /usr/local/share/pear/phing/tasks/ext/PhpCodeSnifferTask.php on line 340
Indeed such method does not exist in PHP CodeSniffer latest version 1.2.2 (stable).
The Task needs refactoring.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

The task was refactored in r739.