Interface PHPStan\Type\DynamicFunctionThrowTypeExtension

This is the interface dynamic throw type extensions implement for functions.

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

services:
	-
		class: App\PHPStan\MyExtension
		tags:
			- phpstan.dynamicFunctionThrowTypeExtension

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

  • PHPStan\Type\DynamicFunctionThrowTypeExtension
    • PHPStan\Type\Php\JsonThrowTypeExtension implements DynamicFunctionThrowTypeExtension
    • PHPStan\Type\Php\AssertThrowTypeExtension implements DynamicFunctionThrowTypeExtension
    • PHPStan\Type\Php\IntdivThrowTypeExtension implements DynamicFunctionThrowTypeExtension
Methods