From fc4c98050e63dd09f9a671d26fdfda5d32c600b9 Mon Sep 17 00:00:00 2001 From: Andrew Nagy Date: Thu, 2 Mar 2023 19:02:56 +0000 Subject: [PATCH] cleanup --- src/Psalm/Internal/Cli/LanguageServer.php | 3 +-- src/Psalm/Internal/LanguageServer/LanguageServer.php | 2 +- .../LanguageServer/Provider/FileReferenceCacheProvider.php | 2 ++ .../Internal/LanguageServer/Provider/ProjectCacheProvider.php | 3 +++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Psalm/Internal/Cli/LanguageServer.php b/src/Psalm/Internal/Cli/LanguageServer.php index 50c4b6535..c89abb4b8 100644 --- a/src/Psalm/Internal/Cli/LanguageServer.php +++ b/src/Psalm/Internal/Cli/LanguageServer.php @@ -3,7 +3,6 @@ namespace Psalm\Internal\Cli; use LanguageServerProtocol\MessageType; -use Psalm\Config; use Psalm\Internal\CliUtils; use Psalm\Internal\ErrorHandler; use Psalm\Internal\Fork\PsalmRestarter; @@ -379,6 +378,6 @@ final class LanguageServer $clientConfiguration->TCPServerAddress = $options['tcp'] ?? null; $clientConfiguration->TCPServerMode = isset($options['tcp-server']); - LanguageServerLanguageServer::run($config, $clientConfiguration, $current_dir); + LanguageServerLanguageServer::run($config, $clientConfiguration; } } diff --git a/src/Psalm/Internal/LanguageServer/LanguageServer.php b/src/Psalm/Internal/LanguageServer/LanguageServer.php index b24a74ec6..e0db1c1fe 100644 --- a/src/Psalm/Internal/LanguageServer/LanguageServer.php +++ b/src/Psalm/Internal/LanguageServer/LanguageServer.php @@ -240,7 +240,7 @@ class LanguageServer extends Dispatcher /** * Start the Server */ - public static function run(Config $config, ClientConfiguration $clientConfiguration, string $base_dir): void + public static function run(Config $config, ClientConfiguration $clientConfiguration): void { $progress = new Progress(); diff --git a/src/Psalm/Internal/LanguageServer/Provider/FileReferenceCacheProvider.php b/src/Psalm/Internal/LanguageServer/Provider/FileReferenceCacheProvider.php index 0d8e02fc4..79d545344 100644 --- a/src/Psalm/Internal/LanguageServer/Provider/FileReferenceCacheProvider.php +++ b/src/Psalm/Internal/LanguageServer/Provider/FileReferenceCacheProvider.php @@ -8,6 +8,8 @@ use Psalm\Internal\Provider\FileReferenceCacheProvider as InternalFileReferenceC /** * Used to determine which files reference other files, necessary for using the --diff * option from the command line. + * + * @internal */ class FileReferenceCacheProvider extends InternalFileReferenceCacheProvider { diff --git a/src/Psalm/Internal/LanguageServer/Provider/ProjectCacheProvider.php b/src/Psalm/Internal/LanguageServer/Provider/ProjectCacheProvider.php index f3611d371..ed210fa0a 100644 --- a/src/Psalm/Internal/LanguageServer/Provider/ProjectCacheProvider.php +++ b/src/Psalm/Internal/LanguageServer/Provider/ProjectCacheProvider.php @@ -4,6 +4,9 @@ namespace Psalm\Internal\LanguageServer\Provider; use Psalm\Internal\Provider\ProjectCacheProvider as PsalmProjectCacheProvider; +/** + * @internal + */ class ProjectCacheProvider extends PsalmProjectCacheProvider { private int $last_run = 0;