Skip to content

Commit

Permalink
fix(psalm): fix logic
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Oct 15, 2024
1 parent 769f6b6 commit 9f7742b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AppConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function getAppSettings() {
$value = $value === 'yes' ? true : $value;
$result[$key] = $value === 'no' ? false : $value;
}
if (!empty(self::INTEGER_LIST_KEYS[$key])) {
if (array_key_exists($key, self::INTEGER_LIST_KEYS)) {
$result[$key] = array_map('intval', $result[$key] ?? []);
}
}
Expand Down

0 comments on commit 9f7742b

Please sign in to comment.