This is the interface dynamic throw type extensions implement for non-static methods.
To register it in the configuration file use the phpstan.dynamicMethodThrowTypeExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.dynamicMethodThrowTypeExtension
Learn more: https://phpstan.org/developing-extensions/dynamic-throw-type-extensions
Methods | ||
---|---|---|
public
|
isMethodSupported(MethodReflection $methodReflection): bool
|
# |
public
|
getThrowTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): ?Type
|
# |