1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix phpcs warning

This commit is contained in:
Matthew Brown 2018-02-25 12:14:35 -05:00
parent 42965bff65
commit 63b473966d
2 changed files with 2 additions and 2 deletions

View File

@ -53,6 +53,8 @@ function requireAutoloaders($current_dir, $has_explicit_root, $vendor_dir)
/** @psalm-suppress UnresolvableInclude */
require_once $file;
}
define('PSALM_VERSION', (string) \Muglug\PackageVersions\Versions::getVersion('vimeo/psalm'));
}
/**

View File

@ -141,8 +141,6 @@ $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)) {
echo 'Psalm ' . PSALM_VERSION . PHP_EOL;
exit;