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

Move things a little

This commit is contained in:
Brown 2020-07-22 16:04:46 -04:00
parent 1e01e90fba
commit ced264620c
2 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,10 @@
use Psalm;
use Psalm\Config;
use Psalm\Internal\Analyzer\ProjectAnalyzer;
use Psalm\Internal\IncludeCollector;
require_once('command_functions.php');
gc_disable();
@ -11,10 +15,6 @@ error_reporting(-1);
require_once __DIR__ . '/Psalm/Internal/exception_handler.php';
use Psalm\Config;
use Psalm\Internal\Analyzer\ProjectAnalyzer;
use Psalm\Internal\IncludeCollector;
$valid_short_options = [
'h',
'v',

View File

@ -10,6 +10,9 @@ use Psalm\Internal\PluginManager\Command\ShowCommand;
use Psalm\Internal\PluginManager\PluginListFactory;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\InputOption;
use function getcwd;
use const DIRECTORY_SEPARATOR;
use function dirname;
$current_dir = (string)getcwd() . DIRECTORY_SEPARATOR;
$vendor_dir = \Psalm\getVendorDir($current_dir);