Interface PHPStan\Type\DynamicMethodReturnTypeExtension

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

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

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

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

  • PHPStan\Type\DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\SimpleXMLElementAsXMLMethodReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\ThrowableReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\StatDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension, DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\DsMapDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\ClosureBindToDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\SimpleXMLElementXpathMethodReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\XMLReaderOpenReturnTypeExtension implements DynamicMethodReturnTypeExtension, DynamicStaticMethodReturnTypeExtension
    • PHPStan\Type\Php\ReflectionGetAttributesMethodReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\DateTimeModifyReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\DateFormatMethodReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Reflection\BetterReflection\Type\AdapterReflectionEnumDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Reflection\BetterReflection\Type\AdapterReflectionEnumCaseDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
    • PHPStan\Reflection\PHPStan\NativeReflectionEnumReturnDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
Methods