1
0
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:
Matthew Brown 2018-02-25 11:35:43 -05:00
parent 2be2769008
commit 42965bff65
3 changed files with 7 additions and 3 deletions

View File

@ -37,6 +37,8 @@ class ClassLikeStorageCacheProvider
$this->modified_timestamps .= ' ' . filemtime($dependent_file_path);
}
$this->modified_timestamps .= PSALM_VERSION;
}
/**

View File

@ -36,6 +36,8 @@ class FileStorageCacheProvider
$this->modified_timestamps .= ' ' . filemtime($dependent_file_path);
}
$this->modified_timestamps .= PSALM_VERSION;
}
/**

View File

@ -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;
}