Interface PHPStan\Analyser\DependencyTracker

The interface DependencyTracker can be typehinted in 2nd parameter of Rule::processNode() and Collector::processNode(), and in the Scope parameter of dynamic return type extensions, dynamic throw type extensions, expression type resolver extensions, parameter out type extensions, parameter closure type extensions, parameter closure this extensions and type-specifying extensions: ```php /**

  • @param Scope&DependencyTracker $scope */ public function processNode(Node $node, Scope $scope): array
interfaces declare once PHPStan is downgraded for older PHP versions. It tracks what the analysis of the current file depends on besides the analysed code, so that
the result cache re-analyses the file when that changes - see ResultCacheValueExtension. Extensions that get no Scope because they describe a class - class reflection extensions - use
DeclarationDependencyTracker instead.
Methods