From 49000ca587590dbc4ca6f5e59697163f2ff8ce88 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Sat, 29 Apr 2023 20:08:36 +0200 Subject: phpstan level 9 for check.translation.php (#5353) * phpstan level 7 for check.translation.php * Fixes --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- cli/manipulate.translation.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cli/manipulate.translation.php') 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 $options */ -$options = getopt("a:hk:l:o:rv:"); +/** @var array|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)) { -- cgit v1.2.3