A value outside of the analysed code that rules and extensions read - whether a service exists in a DI container, the value of a configuration parameter, the contents of a file. A rule or an extension reading such a value declares it: ```php $scope->trackValueDependency(MyExtension::class, $key);
is different, and only them. Compared to ResultCacheMetaExtension, which discards the whole
result cache on any change, only what was actually asked about matters, and only for the
files asking. To register it in the configuration file use the `phpstan.resultCacheValueExtension` service tag: ```
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.resultCacheValueExtension
| Methods | ||
|---|---|---|
public
|
getValue(string $key): string
|
# |
public
|
keyToResultCache(string $key): string
|
# |
public
|
keyFromResultCache(string $storedKey): string
|
# |