From: Michael Date: Sat, 27 Jul 2019 17:00:06 +0000 (+0000) Subject: Type hints X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d9472dccf5ab62a0054e1a31aee22c7cd02e5e3;p=friendica.git Type hints --- 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)); }