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 @@ -