From dd6279a269274532a54212301b75b5ddc0c11314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 6 Apr 2021 18:29:54 +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/GiiBase.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Gii/GiiBase.php b/Gii/GiiBase.php index de545419..b24d1996 100644 --- a/Gii/GiiBase.php +++ b/Gii/GiiBase.php @@ -241,13 +241,9 @@ abstract class GiiBase foreach ($attribute->getArguments() as $_key => $argument) { $argument = $this->resolveArray($argument); if (is_numeric($_key)) { - $_array[] = '\'' . $argument . '\''; + $_array[] = $argument; } else { - if (is_numeric($_key)) { - $_array[] = $argument; - } else { - $_array[] = $_key . ': ' . $argument . ''; - } + $_array[] = $_key . ': ' . $argument . ''; } } $over .= " #[" . end($explode) . "(" . implode(',', $_array) . ")]