From 6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 11 May 2023 13:02:04 +0200 Subject: A few additional PHPStan rules (#5388) A subset of https://github.com/phpstan/phpstan-strict-rules --- cli/manipulate.translation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/manipulate.translation.php') diff --git a/cli/manipulate.translation.php b/cli/manipulate.translation.php index 947739384..4ef7101a3 100755 --- a/cli/manipulate.translation.php +++ b/cli/manipulate.translation.php @@ -28,7 +28,7 @@ switch ($options['a']) { $i18nData->addKey($options['k'], $options['v']); } elseif (array_key_exists('l', $options)) { $reference = null; - if (array_key_exists('o', $options) && is_string($options['o'])) { + if (array_key_exists('o', $options)) { $reference = $options['o']; } $i18nData->addLanguage($options['l'], $reference); -- cgit v1.2.3