This is the interface for dynamically specifying the $this context
for closure parameters in method calls. To register it in the configuration file use the phpstan.methodParameterClosureThisExtension
service tag: ```
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.methodParameterClosureThisExtension
Methods | ||
---|---|---|
public
|
isMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter): bool
|
# |
public
|
getClosureThisTypeFromMethodCall(
MethodReflection $methodReflection,
MethodCall $methodCall,
ParameterReflection $parameter,
Scope $scope,
): ?Type
|
# |