Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #1111 - retrieve php.interpreter property from project, fix typ…

…os and docs
  • Loading branch information...
commit 008c1cf26534deda6cf77e85b1d2e62a8d22c27d 1 parent 35aca2d
@mrook mrook authored
View
12 classes/phing/tasks/ext/PhpLintTask.php
@@ -51,10 +51,10 @@ class PhpLintTask extends Task {
protected $deprecatedAsError = false;
/**
- * Initialize the interpreter with the Phing property
+ * Initialize the interpreter with the Phing property php.interpreter
*/
- public function __construct() {
- $this->setInterpreter(Phing::getProperty('php.interpreter'));
+ public function init() {
+ $this->setInterpreter($this->project->getProperty('php.interpreter'));
}
/**
@@ -64,7 +64,7 @@ public function __construct() {
* @param string $sPhp
*/
public function setInterpreter($sPhp) {
- $this->Interpreter = $sPhp;
+ $this->interpreter = $sPhp;
}
/**
@@ -209,9 +209,9 @@ public function main() {
* @return void
*/
protected function lint($file) {
- $command = $this->Interpreter == ''
+ $command = $this->interpreter == ''
? 'php'
- : $this->Interpreter;
+ : $this->interpreter;
$command .= ' -n -l ';
if ($this->deprecatedAsError) {
View
2  docs/docbook5/en/source/appendixes/optionaltasks.xml
@@ -7974,7 +7974,7 @@ Note that you can omit both startpoint and track attributes in this case
<entry><literal>interpreter</literal></entry>
<entry><literal role="type">String</literal></entry>
<entry>Path to alternative PHP interpreter</entry>
- <entry>Defaults to the <literal>${php.command}</literal> property which is
+ <entry>Defaults to the <literal>${php.interpreter}</literal> property which is
the interpreter used to execute phing itself.</entry>
<entry>No</entry>
</row>
Please sign in to comment.
Something went wrong with that request. Please try again.