mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Revert \Composer\Autoload\ClassLoader in other Cli\*.php
This commit is contained in:
parent
2d199d1f13
commit
81c94f12c1
@ -2,7 +2,6 @@
|
||||
|
||||
namespace Psalm\Internal\Cli;
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Psalm\Config;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Internal\CliUtils;
|
||||
@ -220,7 +219,8 @@ HELP;
|
||||
$include_collector = new IncludeCollector();
|
||||
|
||||
$first_autoloader = $include_collector->runAndCollect(
|
||||
function () use ($current_dir, $options, $vendor_dir): ?ClassLoader {
|
||||
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
|
||||
function () use ($current_dir, $options, $vendor_dir): ?\Composer\Autoload\ClassLoader {
|
||||
return CliUtils::requireAutoloaders($current_dir, isset($options['r']), $vendor_dir);
|
||||
}
|
||||
);
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
namespace Psalm\Internal\Cli;
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Composer\XdebugHandler\XdebugHandler;
|
||||
use Psalm\Config;
|
||||
use Psalm\Exception\UnsupportedIssueToFixException;
|
||||
@ -203,7 +202,8 @@ HELP;
|
||||
|
||||
$include_collector = new IncludeCollector();
|
||||
$first_autoloader = $include_collector->runAndCollect(
|
||||
function () use ($current_dir, $options, $vendor_dir): ?ClassLoader {
|
||||
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
|
||||
function () use ($current_dir, $options, $vendor_dir): ?\Composer\Autoload\ClassLoader {
|
||||
return CliUtils::requireAutoloaders($current_dir, isset($options['r']), $vendor_dir);
|
||||
}
|
||||
);
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
namespace Psalm\Internal\Cli;
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
use Composer\XdebugHandler\XdebugHandler;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Internal\CliUtils;
|
||||
@ -178,7 +177,8 @@ HELP;
|
||||
|
||||
$include_collector = new IncludeCollector();
|
||||
$first_autoloader = $include_collector->runAndCollect(
|
||||
function () use ($current_dir, $options, $vendor_dir): ?ClassLoader {
|
||||
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
|
||||
function () use ($current_dir, $options, $vendor_dir): ?\Composer\Autoload\ClassLoader {
|
||||
return CliUtils::requireAutoloaders($current_dir, isset($options['r']), $vendor_dir);
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user