aboutsummaryrefslogtreecommitdiff
path: root/app/install.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-05-11 13:02:04 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-11 13:02:04 +0200
commit6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 (patch)
tree7ba9f5aebb01d12045b9067a86b5060ba13dca18 /app/install.php
parentfe7d9bbcd68660a59b813346c236b61b25a51c80 (diff)
A few additional PHPStan rules (#5388)
A subset of https://github.com/phpstan/phpstan-strict-rules
Diffstat (limited to 'app/install.php')
-rw-r--r--app/install.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/install.php b/app/install.php
index cb49b8de7..65efe40f1 100644
--- a/app/install.php
+++ b/app/install.php
@@ -31,7 +31,7 @@ function initTranslate(): void {
Minz_Session::_param('language', get_best_language());
}
- if (!in_array(Minz_Session::param('language'), $available_languages)) {
+ if (!in_array(Minz_Session::param('language'), $available_languages, true)) {
Minz_Session::_param('language', 'en');
}
@@ -265,7 +265,7 @@ function checkStep(): void {
/** @return array<string,string> */
function checkStep0(): array {
$languages = Minz_Translate::availableLanguages();
- $language = Minz_Session::param('language') != '' && in_array(Minz_Session::param('language'), $languages);
+ $language = Minz_Session::param('language') != '' && in_array(Minz_Session::param('language'), $languages, true);
$sessionWorking = Minz_Session::param('sessionWorking') === 'ok';
return array(
@@ -565,7 +565,7 @@ function printStep2(): void {
}
function no_auth(string $auth_type): bool {
- return !in_array($auth_type, array('form', 'http_auth', 'none'));
+ return !in_array($auth_type, ['form', 'http_auth', 'none'], true);
}
function printStep3(): void {