This is the extension interface to implement if you want to describe always-used class constant.
To register it in the configuration file use the phpstan.constants.alwaysUsedClassConstantsExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.constants.alwaysUsedClassConstantsExtension
Learn more: https://phpstan.org/developing-extensions/always-used-class-constants
Methods | ||
---|---|---|
public
|
isAlwaysUsed(ConstantReflection $constant): bool
|
# |