C.122 PHPStanTask

The PHPStanTask executes PHPStan - a PHP static analysis tool - with given configuration.

Table C.156: Base attributes

NameTypeDescriptionDefaultRequired
commandStringPHPStan command nameanalyseNo
executableStringPath to PHPStan executablephpstanNo

Table C.157: Analyse command attributes

NameTypeDescriptionDefaultRequired
configurationStringPath to configuration No
levelStringAnalyse level No
noProgressStringNO progress flagfalseNo
debugStringDebug flagfalseNo
autoloadFileStringPath to autoload file No
errorFormatStringError format No
memoryLimitStringMemory limit No
pathsStringPaths (space separated) No

Table C.158: List command attributes

NameTypeDescriptionDefaultRequired
formatStringHelp format No
rawStringRaw flagfalseNo
namespaceStringNamespace No

Table C.159: Help command attributes

NameTypeDescriptionDefaultRequired
formatStringHelp format No
rawStringRaw flagfalseNo
commandNameStringCommand name No

Table C.160: Common attributes

NameTypeDescriptionDefaultRequired
helpStringHelp flagfalseNo
quietStringQuiet flagfalseNo
versionStringVersion flagfalseNo
ansiStringANSI flagfalseNo
noAnsiStringNo ANSI flagfalseNo
noInteractionStringNo interaction flagfalseNo
verboseStringVerbose flagfalseNo

C.122.1 Example

                <phpstan
                command="analyse"
                configuration="anyConfiguration"
                level="anyLevel"
                noProgress="true"
                debug="true"
                autoloadFile="anyAutoloadFile"
                errorFormat="anyErrorFormat"
                memoryLimit="anyMemoryLimit"
                paths="path1 path2"
                />