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