Interface PHPStan\Type\MethodTypeSpecifyingExtension

This is the interface type-specifying extensions implement for non-static methods.

To register it in the configuration file use the phpstan.typeSpecifier.methodTypeSpecifyingExtension service tag:

services:
	-
		class: App\PHPStan\MyExtension
		tags:
			- phpstan.typeSpecifier.methodTypeSpecifyingExtension

Learn more: https://phpstan.org/developing-extensions/type-specifying-extensions

  • PHPStan\Type\MethodTypeSpecifyingExtension
    • PHPStan\Type\Php\ReflectionClassIsSubclassOfTypeSpecifyingExtension implements MethodTypeSpecifyingExtension, TypeSpecifierAwareExtension
Methods