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/_cli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/_cli.php') diff --git a/cli/_cli.php b/cli/_cli.php index 710e26605..9c62f3b4c 100644 --- a/cli/_cli.php +++ b/cli/_cli.php @@ -61,7 +61,7 @@ function performRequirementCheck(string $databaseType): void { if ($requirements['all'] !== 'ok') { $message = 'FreshRSS failed requirements:' . "\n"; foreach ($requirements as $requirement => $check) { - if ($check !== 'ok' && !in_array($requirement, array('all', 'pdo', 'message'))) { + if ($check !== 'ok' && !in_array($requirement, ['all', 'pdo', 'message'], true)) { $message .= '• ' . $requirement . "\n"; } } -- cgit v1.2.3