Interface PHPStan\Type\DynamicFunctionReturnTypeExtension

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

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

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

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

  • PHPStan\Type\DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\NonEmptyStringFunctionsReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\DateTimeDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrIncrementDecrementFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrtotimeFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayMergeFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\MinMaxFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayPopFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\GettypeFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\GetParentClassDynamicFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ReplaceFunctionsDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArgumentBasedFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\MbFunctionsReturnTypeExtension implements DynamicFunctionReturnTypeExtension uses MbFunctionsReturnTypeExtensionTrait
    • PHPStan\Type\Php\ArrayNextDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\CompactFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ConstantFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayKeysFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayValuesFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\CurlGetinfoFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\CountFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayPointerFunctionsDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayCombineFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ParseUrlFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\Base64DecodeDynamicFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayChunkFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StatDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension, DynamicMethodReturnTypeExtension
    • PHPStan\Type\Php\PregSplitDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\IteratorToArrayFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayShiftFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\RoundFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayReplaceFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\AbsFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\HrtimeFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayKeyLastDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\MbSubstituteCharacterDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayMapFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\MbStrlenFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension uses MbFunctionsReturnTypeExtensionTrait
    • PHPStan\Type\Php\StrTokFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArraySliceFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayFilterFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\DateFormatFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\JsonThrowOnErrorDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ClassImplementsFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\IniGetReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\VersionCompareFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\SscanfFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\FilterVarDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\MbConvertEncodingFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayColumnFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayRandFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\NumberFormatFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\PregFilterFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArraySumFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\GetCalledClassDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\TypeSpecifyingFunctionsDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension, TypeSpecifierAwareExtension
    • PHPStan\Type\Php\RangeFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\TriggerErrorDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrlenFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\GettimeofdayDynamicFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\FilterInputDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\PathinfoFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\HighlightStringDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\MicrotimeFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrWordCountFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrCaseFunctionsReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\BcMathStringOrNullReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArraySpliceFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\FilterVarArrayDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\DateFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\DateTimeCreateDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayFillFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\DioStatDynamicFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrvalFamilyFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrPadFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ImplodeFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\SubstrDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\HashFunctionsReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ExplodeFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\PowFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayFlipFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrRepeatFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\RandomIntFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayReverseFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayCurrentDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayIntersectKeyFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\StrSplitFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension uses MbFunctionsReturnTypeExtensionTrait
    • PHPStan\Type\Php\GetClassDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayFillKeysFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\GetDebugTypeFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArraySearchFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayReduceFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayKeyDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\LtrimFunctionReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\SprintfFunctionDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
    • PHPStan\Type\Php\ArrayKeyFirstDynamicReturnTypeExtension implements DynamicFunctionReturnTypeExtension
Methods