From 3f1695db039101d44d611f0d1781d1ba034034dd Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 5 Apr 2023 16:19:14 +0200 Subject: PHPStan 6 for CLI (#5258) * PHPStan 6 for CLI Except `./cli/i18n/` * Bool * One type forgotten --- cli/manipulate.translation.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/manipulate.translation.php') diff --git a/cli/manipulate.translation.php b/cli/manipulate.translation.php index 801aa30b6..ed307f302 100755 --- a/cli/manipulate.translation.php +++ b/cli/manipulate.translation.php @@ -9,7 +9,7 @@ require_once __DIR__ . '/../constants.php'; $options = getopt("a:hk:l:o:rv:"); if (array_key_exists('h', $options)) { - help(); + manipulateHelp(); } if (!array_key_exists('a', $options)) { @@ -76,7 +76,7 @@ switch ($options['a']) { } break; default : - help(); + manipulateHelp(); exit; } @@ -85,19 +85,19 @@ $data->dump($i18nData->getData()); /** * Output error message. */ -function error($message) { +function error(string $message): void { $error = <<