diff --git a/src/Psalm/Internal/Cli/LanguageServer.php b/src/Psalm/Internal/Cli/LanguageServer.php index cbad4178b..5d44a9a06 100644 --- a/src/Psalm/Internal/Cli/LanguageServer.php +++ b/src/Psalm/Internal/Cli/LanguageServer.php @@ -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); } ); diff --git a/src/Psalm/Internal/Cli/Psalter.php b/src/Psalm/Internal/Cli/Psalter.php index 2acadcdac..8f8451ac1 100644 --- a/src/Psalm/Internal/Cli/Psalter.php +++ b/src/Psalm/Internal/Cli/Psalter.php @@ -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); } ); diff --git a/src/Psalm/Internal/Cli/Refactor.php b/src/Psalm/Internal/Cli/Refactor.php index e57b34847..8f0bd1f42 100644 --- a/src/Psalm/Internal/Cli/Refactor.php +++ b/src/Psalm/Internal/Cli/Refactor.php @@ -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); } );