1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

replace composer/composer with composer/xdebug-handler

Fixes vimeo/psalm#349

Note: there's no stable release at the moment, so it's using dev-master
for now.
This commit is contained in:
Bruce Weirdan 2017-11-28 23:29:51 +02:00 committed by Matthew Brown
parent b54fb06552
commit 9a27583253
2 changed files with 4 additions and 4 deletions

View File

@ -12,10 +12,10 @@
"require": {
"php": "^5.6 || ^7.0",
"nikic/PHP-Parser": "^3.1.2",
"composer/composer": "^1.3|^1.4|^1.5",
"openlss/lib-array2xml": "^0.0.10||^0.5.1",
"muglug/package-versions-56": "1.2.3",
"php-cs-fixer/diff": "^1.2"
"php-cs-fixer/diff": "^1.2",
"composer/xdebug-handler": "dev-master"
},
"bin": ["psalm", "psalter"],
"autoload": {

View File

@ -47,7 +47,7 @@ if (isset($options['c']) && is_array($options['c'])) {
}
if (array_key_exists('h', $options)) {
echo <<< HELP
echo <<<HELP
Usage:
psalm [options] [file...]
@ -144,7 +144,7 @@ if (array_key_exists('v', $options)) {
}
// If XDebug is enabled, restart without it
(new \Composer\XdebugHandler(\Composer\Factory::createOutput()))->check();
(new \Composer\XdebugHandler\XdebugHandler())->check();
setlocale(LC_CTYPE, 'C');