1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

missing default value for $version

This commit is contained in:
Dawid 'DeyV' Polak 2022-01-02 18:13:02 +01:00
parent d43f2beed8
commit 7172f4bdbe
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ final class Plugin
$vendor_dir = CliUtils::getVendorDir($current_dir);
CliUtils::requireAutoloaders($current_dir, false, $vendor_dir);
$version = null;
try {
$version = InstalledVersions::getVersion('vimeo/psalm') ;
} catch (OutOfBoundsException $e) {

View File

@ -147,6 +147,7 @@ final class CliUtils
exit(1);
}
$version = null;
try {
$version = InstalledVersions::getVersion('vimeo/psalm') ;
} catch (OutOfBoundsException $e) {