From ecbe23ffcd76b5f88a54e8435f9e16297db62282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 17 Dec 2020 15:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gii/GiiModel.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gii/GiiModel.php b/Gii/GiiModel.php index 4b40c76a..7239d717 100644 --- a/Gii/GiiModel.php +++ b/Gii/GiiModel.php @@ -266,7 +266,8 @@ class ' . $managerName . ' extends ActiveRecord /** * @inheritdoc */ - public static function tableName(){ + public static function tableName(): string + { return \'' . $field . '\'; } '; @@ -432,10 +433,10 @@ class ' . $managerName . ' extends ActiveRecord { return ' /** - * @return mixed|Connection + * @return Connection * @throws Exception */ - public static function getDb() + public static function getDb(): Connection { return static::setDatabaseConnect(\'' . $this->db->id . '\'); }