Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2020-10-02 06:37:23 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2020-10-02 06:37:23 +0300
commite7c8e20edb8252dd47b9531ae0ed8656b4f26581 (patch)
treed9366a5640710aa2889a79573277ebf8f825f21b /setup
parent87bfadd4ecd0b30a82ba3dbc318dae71320720b0 (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.php2
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';