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