mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Bust Psalm statements cache when upgrading Psalm version
This commit is contained in:
parent
2be2769008
commit
42965bff65
@ -37,6 +37,8 @@ class ClassLikeStorageCacheProvider
|
||||
|
||||
$this->modified_timestamps .= ' ' . filemtime($dependent_file_path);
|
||||
}
|
||||
|
||||
$this->modified_timestamps .= PSALM_VERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -36,6 +36,8 @@ class FileStorageCacheProvider
|
||||
|
||||
$this->modified_timestamps .= ' ' . filemtime($dependent_file_path);
|
||||
}
|
||||
|
||||
$this->modified_timestamps .= PSALM_VERSION;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -141,10 +141,10 @@ $vendor_dir = getVendorDir($current_dir);
|
||||
|
||||
requireAutoloaders($current_dir, isset($options['r']), $vendor_dir);
|
||||
|
||||
define('PSALM_VERSION', (string) \Muglug\PackageVersions\Versions::getVersion('vimeo/psalm'));
|
||||
|
||||
if (array_key_exists('v', $options)) {
|
||||
/** @var string */
|
||||
$version = \Muglug\PackageVersions\Versions::getVersion('vimeo/psalm');
|
||||
echo 'Psalm ' . $version . PHP_EOL;
|
||||
echo 'Psalm ' . PSALM_VERSION . PHP_EOL;
|
||||
exit;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user