This is the interface type-specifying extensions implement for static methods.
To register it in the configuration file use the phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
Learn more: https://phpstan.org/developing-extensions/type-specifying-extensions
Methods | ||
---|---|---|
public
|
getClass(): class-string
|
# |
public
|
isStaticMethodSupported(MethodReflection $staticMethodReflection, StaticCall $node, TypeSpecifierContext $context): bool
|
# |
public
|
specifyTypes(
MethodReflection $staticMethodReflection,
StaticCall $node,
Scope $scope,
TypeSpecifierContext $context,
): SpecifiedTypes
|
# |