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