Type hints

This commit is contained in:
Michael 2019-07-27 17:00:06 +00:00
parent f48452dd29
commit 5d9472dccf
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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));
}