classes/phing/tasks/ext/PhpLintTask.php
\PhpLintTask
A PHP lint task. Checking syntax of one or more PHP source file.
Use {@link Project#createTask} to register a new Task.
- Extends from
- \Task
- author
- Knut Urdalen
- author
- Stefan Priebsch
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.tasks.ext
- version
- $Id: PhpLintTask.php 1226 2011-07-25 14:50:58Z mrook $
Properties
Methods

createFileSet(
)
:
\FileSetNested creator, creates a FileSet for this task
| Type | Description |
|---|---|
| \FileSet |

lint(
string $file
)
:
voidPerforms the actual syntax check
| Name | Type | Description |
|---|---|---|
| $file | string |

setCacheFile(
\PhingFile $file
)
:
Whether to store last-modified times in cache
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile |

setDeprecatedAsError(
boolean $deprecatedAsError
)
:
Sets whether to treat deprecated warnings (introduced in PHP 5.3) as errors
| Name | Type | Description |
|---|---|---|
| $deprecatedAsError | boolean |

setErrorproperty(
string $propname
)
:
Set an property name in which to put any errors.
| Name | Type | Description |
|---|---|---|
| $propname | string |

setFile(
\PhingFile $file
)
:
File to be performed syntax check on
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile |

setHaltOnFailure(
boolean $aValue
)
:
The haltonfailure property
| Name | Type | Description |
|---|---|---|
| $aValue | boolean |

setInterpreter(
string $sPhp
)
:
Override default php interpreter
| Name | Type | Description |
|---|---|---|
| $sPhp | string |
- todo
- Do some sort of checking if the path is correct but would require traversing the systems executeable path too

setLevel(
string $level
)
:
Set level of log messages generated (default = info)
| Name | Type | Description |
|---|---|---|
| $level | string |