PHP Class PHPStan\Analyser\Analyser

Mostrar archivo Open project: phpstan/phpstan Class Usage Examples

Public Methods

Method Description
__construct ( Broker $broker, PHPStan\Parser\Parser $parser, Registry $registry, NodeScopeResolver $nodeScopeResolver, Standard $printer, array $analyseExcludes, array $ignoreErrors, string $bootstrapFile = null )
analyse ( array $files, Closure $progressCallback = null ) : array
isExcludedFromAnalysing ( string $file ) : boolean

Private Methods

Method Description
createErrors ( PhpParser\Node $node, string $file, array $messages ) : array

Method Details

__construct() public method

public __construct ( Broker $broker, PHPStan\Parser\Parser $parser, Registry $registry, NodeScopeResolver $nodeScopeResolver, Standard $printer, array $analyseExcludes, array $ignoreErrors, string $bootstrapFile = null )
$broker PHPStan\Broker\Broker
$parser PHPStan\Parser\Parser
$registry PHPStan\Rules\Registry
$nodeScopeResolver NodeScopeResolver
$printer PhpParser\PrettyPrinter\Standard
$analyseExcludes array
$ignoreErrors array
$bootstrapFile string

analyse() public method

public analyse ( array $files, Closure $progressCallback = null ) : array
$files array
$progressCallback Closure
return array errors

isExcludedFromAnalysing() public method

public isExcludedFromAnalysing ( string $file ) : boolean
$file string
return boolean