aboutsummaryrefslogtreecommitdiff
path: root/cli/manipulate.translation.php
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2023-04-29 20:08:36 +0200
committerGravatar GitHub <noreply@github.com> 2023-04-29 20:08:36 +0200
commit49000ca587590dbc4ca6f5e59697163f2ff8ce88 (patch)
treef6c3467e70d0fa9ea72a6c3e16a0317f8b189729 /cli/manipulate.translation.php
parent2199df8ad7e9297f523614115bb323585e0dba83 (diff)
phpstan level 9 for check.translation.php (#5353)
* phpstan level 7 for check.translation.php * Fixes --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'cli/manipulate.translation.php')
-rwxr-xr-xcli/manipulate.translation.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/manipulate.translation.php b/cli/manipulate.translation.php
index b52451681..947739384 100755
--- a/cli/manipulate.translation.php
+++ b/cli/manipulate.translation.php
@@ -5,11 +5,12 @@ require_once __DIR__ . '/i18n/I18nData.php';
require_once __DIR__ . '/i18n/I18nFile.php';
require_once __DIR__ . '/../constants.php';
-/** @var array<string,string> $options */
-$options = getopt("a:hk:l:o:rv:");
+/** @var array<string,string>|false $options */
+$options = getopt('a:hk:l:o:rv:');
-if (array_key_exists('h', $options)) {
+if (!is_array($options) || array_key_exists('h', $options)) {
manipulateHelp();
+ exit();
}
if (!array_key_exists('a', $options)) {