This is the extension interface to implement if you want to describe an always-used class method.
To register it in the configuration file use the phpstan.methods.alwaysUsedMethodExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.methods.alwaysUsedMethodExtension
Methods | ||
---|---|---|
public
|
isAlwaysUsed(MethodReflection $methodReflection): bool
|
# |