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