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
Methods | ||
---|---|---|
public
|
isFunctionSupported(FunctionReflection $functionReflection): bool
|
# |
public
|
getTypeFromFunctionCall(FunctionReflection $functionReflection, FuncCall $functionCall, Scope $scope): ?Type
|
# |