Interface PHPStan\Collectors\Collector

<outTNodeType is Node, outTValue>

This is the interface custom collectors implement. To register it in the configuration file use the phpstan.collector service tag:

services:
	-
		class: App\MyCollector
		tags:
			- phpstan.collector

Learn more: https://phpstan.org/developing-extensions/collectors

  • PHPStan\Collectors\Collector
    • PHPStan\Rules\Traits\TraitUseCollector implements Collector<TraitUse, list<string>>
    • PHPStan\Rules\Traits\TraitDeclarationCollector implements Collector<Trait_, array{string, int}>
Methods