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