From 706f2a77618f11bde61ca8349dffa54e625f3226 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Mon, 3 Jan 2022 12:04:35 +0200 Subject: [PATCH] Drop legacy procedural files --- composer.json | 1 - psalm | 2 + psalm-baseline.xml | 25 ---------- psalm-language-server | 2 + psalm-plugin | 2 + psalm-refactor | 2 + psalm.xml.dist | 5 ++ psalter | 2 + src/command_functions.php | 88 ----------------------------------- src/functions.php | 13 ------ src/psalm-language-server.php | 10 ---- src/psalm-refactor.php | 10 ---- src/psalm.php | 10 ---- src/psalm_plugin.php | 10 ---- src/psalter.php | 10 ---- 15 files changed, 15 insertions(+), 177 deletions(-) delete mode 100644 src/command_functions.php delete mode 100644 src/functions.php delete mode 100644 src/psalm-language-server.php delete mode 100644 src/psalm-refactor.php delete mode 100644 src/psalm.php delete mode 100644 src/psalm_plugin.php delete mode 100644 src/psalter.php diff --git a/composer.json b/composer.json index 94bb0c5eff9..67e1687a34e 100644 --- a/composer.json +++ b/composer.json @@ -82,7 +82,6 @@ "Psalm\\": "src/Psalm/" }, "files": [ - "src/functions.php", "src/spl_object_id.php" ] }, diff --git a/psalm b/psalm index a633cb872ac..9d05b6082a4 100755 --- a/psalm +++ b/psalm @@ -1,6 +1,8 @@ #!/usr/bin/env php $type[0] - - - LanguageServer::run($argv) - - - - - Refactor::run($argv) - - - - - Psalm::run($argv) - - - - - Plugin::run() - - - - - Psalter::run($argv) - - $subNodes['expr'] diff --git a/psalm-language-server b/psalm-language-server index a1869f329ab..4bc838c8a1a 100755 --- a/psalm-language-server +++ b/psalm-language-server @@ -1,6 +1,8 @@ #!/usr/bin/env php + + + + + diff --git a/psalter b/psalter index c36c93fec99..8fb9dd3e648 100755 --- a/psalter +++ b/psalter @@ -1,6 +1,8 @@ #!/usr/bin/env php - * @deprecated going to be removed in Psalm 5 - */ -function getArguments(): array -{ - return CliUtils::getArguments(); -} - -/** - * @param string|array|null|false $f_paths - * - * @return list|null - * @deprecated going to be removed in Psalm 5 - */ -function getPathsToCheck($f_paths): ?array -{ - return CliUtils::getPathsToCheck($f_paths); -} - -/** - * @psalm-pure - * @deprecated going to be removed in Psalm 5 - */ -function getPsalmHelpText(): string -{ - return CliUtils::getPsalmHelpText(); -} - -/** @deprecated going to be removed in Psalm 5 */ -function initialiseConfig( - ?string $path_to_config, - string $current_dir, - string $output_format, - ?ClassLoader $first_autoloader, - bool $create_if_non_existent = false -): Config { - return CliUtils::initializeConfig( - $path_to_config, - $current_dir, - $output_format, - $first_autoloader, - $create_if_non_existent - ); -} - -/** @deprecated going to be removed in Psalm 5 */ -function update_config_file(Config $config, string $config_file_path, string $baseline_path): void -{ - CliUtils::updateConfigFile($config, $config_file_path, $baseline_path); -} - -/** @deprecated going to be removed in Psalm 5 */ -function get_path_to_config(array $options): ?string -{ - return CliUtils::getPathToConfig($options); -} - -/** - * @psalm-pure - * @deprecated going to be removed in Psalm 5 - */ -function getMemoryLimitInBytes(): int -{ - return CliUtils::getMemoryLimitInBytes(); -} diff --git a/src/functions.php b/src/functions.php deleted file mode 100644 index a44e53cc7e1..00000000000 --- a/src/functions.php +++ /dev/null @@ -1,13 +0,0 @@ -