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