diff --git a/resources/classes/database.php b/resources/classes/database.php
index a02099dc44..a3e27b2eed 100644
--- a/resources/classes/database.php
+++ b/resources/classes/database.php
@@ -1530,14 +1530,14 @@ class database {
} //count
- /**
- * Performs a select query on database using the $sql statement supplied.
- * @param type $sql Valid SQL statement.
- * @param type $parameters Value can be array, empty string, or null.
- * @param type $return_type Values can be set to all, row, or column.
- * @return mixed Returned values can be array, string, boolean, int, or false. This is dependent on $return_type.
- */
- public function select($sql, $parameters = '', $return_type = 'all') {
+ /**
+ * Performs a select query on database using the $sql statement supplied.
+ * @param string $sql Valid SQL statement.
+ * @param array|null $parameters Value can be array, empty string, or null.
+ * @param string $return_type Values can be set to all, row, or column.
+ * @return mixed Returned values can be array, string, boolean, int, or false. This is dependent on $return_type.
+ */
+ public function select(string $sql, ?array $parameters = [], string $return_type = 'all'): mixed {
//connect to the database if needed
if (!$this->db) {