class GlobalInputsResultCacheMetaExtension implements ResultCacheMetaExtension

Invalidate the whole result cache when an input that every file can depend on changes.

PHPStan computes this metadata in the main process before anything boots. The boot-identity variables choose which application, autoloaders and registrations exist, not just a value inside one, and PHPStan rechecks the stubs it recorded but not a changed stub list. A config, migration or schema dump file in a directory that a configured glob starts matching has no tracked path either.

Constants

private BOOT_VARIABLES

The environment variables that select the booted application.

private BOOT_VARIABLE_PATTERNS

The patterns of the environment variables that select the booted application.

Methods

__construct(HypervelStubFilesExtension $stubFilesExtension, FileHelper $fileHelper, array $configuredDirectories, array $migrationDirectories, array $schemaDirectories)

Create a new extension instance.

string
getKey()

Get the metadata key.

string
getHash()

Get the hash of the stub list, the configured config, migration and schema directories, and the boot-identity variables.

Details

at line 47
__construct(HypervelStubFilesExtension $stubFilesExtension, FileHelper $fileHelper, array $configuredDirectories, array $migrationDirectories, array $schemaDirectories)

Create a new extension instance.

Parameters

HypervelStubFilesExtension $stubFilesExtension
FileHelper $fileHelper
array $configuredDirectories
array $migrationDirectories
array $schemaDirectories

at line 62
string getKey()

Get the metadata key.

Return Value

string

at line 70
string getHash()

Get the hash of the stub list, the configured config, migration and schema directories, and the boot-identity variables.

Return Value

string