diff --git a/install/index.php b/install/index.php index 2367eab45b46..8378bd6857af 100644 --- a/install/index.php +++ b/install/index.php @@ -424,15 +424,18 @@ * $description[2] - The test error to show, if it goes wrong */ class InstallRequirements { - var $errors, $warnings, $tests, $conn; + protected $errors = []; + protected $warnings = []; + var $tests, $conn; // @see CRM_Upgrade_Form::MINIMUM_THREAD_STACK const MINIMUM_THREAD_STACK = 192; /** * Just check that the database configuration is okay. - * @param $databaseConfig - * @param $dbName + * + * @param array $databaseConfig + * @param string $dbName */ public function checkdatabase($databaseConfig, $dbName) { if ($this->requireFunction('mysqli_connect', @@ -485,7 +488,7 @@ public function checkdatabase($databaseConfig, $dbName) { ); if (!CRM_Core_DAO::requireSafeDBName($databaseConfig['database'])) { $this->error($testDetails); - return FALSE; + return; } else { $this->testing($testDetails);