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/reconfigure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/reconfigure.php') diff --git a/cli/reconfigure.php b/cli/reconfigure.php index aefd1e20b..e6da4bddc 100755 --- a/cli/reconfigure.php +++ b/cli/reconfigure.php @@ -59,7 +59,7 @@ if (!FreshRSS_user_Controller::checkUsername(FreshRSS_Context::$system_conf->def } if (isset(FreshRSS_Context::$system_conf->auth_type) && - !in_array(FreshRSS_Context::$system_conf->auth_type, array('form', 'http_auth', 'none'))) { + !in_array(FreshRSS_Context::$system_conf->auth_type, ['form', 'http_auth', 'none'], true)) { fail('FreshRSS invalid authentication method (auth_type must be one of { form, http_auth, none }: ' . FreshRSS_Context::$system_conf->auth_type); } -- cgit v1.2.3