This is the interface dynamic throw type extensions implement for static methods. To register it in the configuration file use the phpstan.dynamicStaticMethodThrowTypeExtension service tag: ```
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.dynamicStaticMethodThrowTypeExtension
| Methods | ||
|---|---|---|
public
|
isStaticMethodSupported(MethodReflection $methodReflection): bool
|
# |
public
|
getThrowTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, Scope $scope): ?Type
|
# |