Namespace PHPStan\Analyser\ResultCache

Interfaces
ResultCacheMetaExtension

ResultCacheMetaExtension can be used for extending PHPStan's built-in mechanism that is used for calculating metadata for result cache. Using this extension you may add additional metadata that will be used for determining if analysis must be run again, or can be re-used from result cache.

ResultCacheValueExtension

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