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