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