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\DeadCode\FunctionWithoutImpurePointsCollector implements Collector<FunctionReturnStatementsNode, string>
    • PHPStan\Rules\DeadCode\ConstructorWithoutImpurePointsCollector implements Collector<MethodReturnStatementsNode, string>
    • PHPStan\Rules\DeadCode\PossiblyPureStaticCallCollector implements Collector<Expression, array{class-string, string, int}>
    • PHPStan\Rules\DeadCode\PossiblyPureNewCollector implements Collector<Expression, array{string, int}>
    • PHPStan\Rules\DeadCode\PossiblyPureMethodCallCollector implements Collector<Expression, array{class-string, string, int}>
    • PHPStan\Rules\DeadCode\PossiblyPureFuncCallCollector implements Collector<Expression, array{string, int}>
    • PHPStan\Rules\DeadCode\MethodWithoutImpurePointsCollector implements Collector<MethodReturnStatementsNode, array{class-string, string, string}>
    • PHPStan\Rules\Traits\TraitDeclarationCollector implements Collector<Trait_, array{string, int}>
    • PHPStan\Rules\Traits\TraitUseCollector implements Collector<TraitUse, list<string>>
Methods