This is the interface custom methods class reflection extensions implement.
To register it in the configuration file use the phpstan.broker.methodsClassReflectionExtension
service tag:
services:
-
class: App\PHPStan\MyMethodsClassReflectionExtension
tags:
- phpstan.broker.methodsClassReflectionExtension
Learn more: https://phpstan.org/developing-extensions/class-reflection-extensions
Methods | ||
---|---|---|
public
|
hasMethod(ClassReflection $classReflection, string $methodName): bool
|
# |
public
|
getMethod(ClassReflection $classReflection, string $methodName): MethodReflection
|
# |