diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2020-10-02 06:37:23 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2020-10-02 06:37:23 +0300 |
commit | e7c8e20edb8252dd47b9531ae0ed8656b4f26581 (patch) | |
tree | d9366a5640710aa2889a79573277ebf8f825f21b /setup | |
parent | 87bfadd4ecd0b30a82ba3dbc318dae71320720b0 (diff) |
Fix some type errors detected by PHPStan
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'setup')
-rw-r--r-- | setup/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup/index.php b/setup/index.php index 03e945d39f..76e0941db2 100644 --- a/setup/index.php +++ b/setup/index.php @@ -27,7 +27,7 @@ if (@file_exists(CONFIG_FILE) && ! $cfg['DBG']['demo']) { Core::fatalError(__('Configuration already exists, setup is disabled!')); } -$page = Core::isValid($_GET['page'], 'scalar') ? (string) $_GET['page'] : null; +$page = Core::isValid($_GET['page'], 'scalar') ? (string) $_GET['page'] : ''; $page = preg_replace('/[^a-z]/', '', $page); if ($page === '') { $page = 'index'; |