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
Learn more: https://phpstan.org/developing-extensions/dynamic-throw-type-extensions
Methods | ||
---|---|---|
public
|
isStaticMethodSupported(MethodReflection $methodReflection): bool
|
# |
public
|
getThrowTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, Scope $scope): ?Type
|
# |