phingofficial/phing — Issue #4: Lint Task fails
Author: mrook
Created: 2012-01-04 14:30:16+00:00
State: closed

The Lint task fails for me because the files to syntax check are not found, at least when I use a fileset with a directory different from ".". Seems that when the Lint task creates the file list, the fileset base path is ommitted.

Changing line 46 of tasks/ext/PhpLintTask.php to

$this->lint($fs->getDir($this->project)->getPath() . '/' . $file);

fixes this problem, though I am not sure if this will work all the time. For me, it does, however.