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