Modify

Ticket #458 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by mrook

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 2.4.2 to 2.4.1

The task was refactored in r739.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.