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