From e89ce9f2f1d9b21cb2ef7575c777d03cd72c9fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 25 Mar 2021 18:08:58 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gii/GiiModel.php b/Gii/GiiModel.php index 96f0c6ab..1a241f78 100644 --- a/Gii/GiiModel.php +++ b/Gii/GiiModel.php @@ -177,7 +177,7 @@ use Database\ActiveRecord; if (!empty($attributes)) { foreach ($attributes as $attribute) { $explode = explode('\\', $attribute->getName()); - $over .= " #[" . env($explode) . "('" . implode('\',\'', $attribute->getArguments()) . "')] + $over .= " #[" . end($explode) . "('" . implode('\',\'', $attribute->getArguments()) . "')] "; } }