mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Merge pull request #7337 from orklah/broken-phar
replace class name by full FQN for scoper
This commit is contained in:
commit
abd499c9c9
@ -2,7 +2,6 @@
|
||||
|
||||
namespace Psalm\Internal\Cli;
|
||||
|
||||
use Composer\InstalledVersions;
|
||||
use OutOfBoundsException;
|
||||
use Psalm\Internal\CliUtils;
|
||||
use Psalm\Internal\PluginManager\Command\DisableCommand;
|
||||
@ -32,7 +31,9 @@ final class Plugin
|
||||
|
||||
$version = null;
|
||||
try {
|
||||
$version = InstalledVersions::getVersion('vimeo/psalm') ;
|
||||
// we ignore the FQN because of a hack in scoper.inc that needs full path
|
||||
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
|
||||
$version = \Composer\InstalledVersions::getVersion('vimeo/psalm') ;
|
||||
} catch (OutOfBoundsException $e) {
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
namespace Psalm\Internal;
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Composer\InstalledVersions;
|
||||
use OutOfBoundsException;
|
||||
use Phar;
|
||||
use Psalm\Config;
|
||||
@ -149,12 +148,16 @@ final class CliUtils
|
||||
|
||||
$version = null;
|
||||
try {
|
||||
$version = InstalledVersions::getVersion('vimeo/psalm') ;
|
||||
// we ignore the FQN because of a hack in scoper.inc that needs full path
|
||||
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
|
||||
$version = \Composer\InstalledVersions::getVersion('vimeo/psalm') ;
|
||||
} catch (OutOfBoundsException $e) {
|
||||
}
|
||||
|
||||
define('PSALM_VERSION', $version ?? 'UNKNOWN');
|
||||
define('PHP_PARSER_VERSION', InstalledVersions::getVersion('nikic/php-parser'));
|
||||
// we ignore the FQN because of a hack in scoper.inc that needs full path
|
||||
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
|
||||
define('PHP_PARSER_VERSION', \Composer\InstalledVersions::getVersion('nikic/php-parser'));
|
||||
|
||||
return $first_autoloader;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user