From 5d9472dccf5ab62a0054e1a31aee22c7cd02e5e3 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 27 Jul 2019 17:00:06 +0000 Subject: [PATCH] Type hints --- src/Database/DBA.php | 2 +- src/Database/Database.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database/DBA.php b/src/Database/DBA.php index 4619bc38b8..9bc314c9c1 100644 --- a/src/Database/DBA.php +++ b/src/Database/DBA.php @@ -420,7 +420,7 @@ class DBA * @throws \Exception * @see self::select */ - public static function selectToArray($table, array $fields = [], array $condition = [], array $params = []) + public static function selectToArray(string $table, array $fields = [], array $condition = [], array $params = []) { return self::$database->selectToArray($table, $fields, $condition, $params); } diff --git a/src/Database/Database.php b/src/Database/Database.php index 566a757b51..29d1ac8cce 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -1419,7 +1419,7 @@ class Database * @throws \Exception * @see self::select */ - public function selectToArray($table, array $fields = [], array $condition = [], array $params = []) + public function selectToArray(string $table, array $fields = [], array $condition = [], array $params = []) { return $this->toArray($this->select($table, $fields, $condition, $params)); } -- 2.39.5