From 2c527c478fa221bb459c80dd5c2745cb9c92020f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 19:49:51 +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 | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Gii/GiiModel.php b/Gii/GiiModel.php index 45d72fa8..f3e0bc7e 100644 --- a/Gii/GiiModel.php +++ b/Gii/GiiModel.php @@ -142,19 +142,7 @@ class ' . $managerName . ' extends ActiveRecord $html .= $this->createRules($this->fields); - - $html .= ' - - /** - * @return array - */ - public function attributes() : array - { - return [' . implode('', $this->res) . ' - ]; - }' . "\n"; - - $out = ['rules', 'tableName', 'attributes']; + $out = ['rules', 'tableName']; if (is_object($class)) { $methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);