Interface PHPStan\Type\DynamicStaticMethodReturnTypeExtension

This is the interface dynamic return type extensions implement for static methods.

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

services:
	-
		class: App\PHPStan\MyExtension
		tags:
			- phpstan.broker.dynamicStaticMethodReturnTypeExtension

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

  • PHPStan\Type\DynamicStaticMethodReturnTypeExtension
    • PHPStan\Type\Php\XMLReaderOpenReturnTypeExtension implements DynamicMethodReturnTypeExtension, DynamicStaticMethodReturnTypeExtension
    • PHPStan\Type\Php\BackedEnumFromMethodDynamicReturnTypeExtension implements DynamicStaticMethodReturnTypeExtension
    • PHPStan\Type\Php\ClosureBindDynamicReturnTypeExtension implements DynamicStaticMethodReturnTypeExtension
    • PHPStan\Type\Php\ClosureFromCallableDynamicReturnTypeExtension implements DynamicStaticMethodReturnTypeExtension
    • PHPStan\Type\Php\DateIntervalDynamicReturnTypeExtension implements DynamicStaticMethodReturnTypeExtension
    • PHPStan\Type\Php\DatePeriodConstructorReturnTypeExtension implements DynamicStaticMethodReturnTypeExtension
Methods