From 1b12a63934b2f53dea5460c8ac12cd072ea7d95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E8=87=AA=E8=B1=AA?= <4213509@qq.com> Date: Tue, 9 Jul 2019 22:18:28 +0800 Subject: [PATCH] Update Validated.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复bug --- src/Validate/Annotation/Validated.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Validate/Annotation/Validated.php b/src/Validate/Annotation/Validated.php index 5e8e9a9..0ff5e54 100644 --- a/src/Validate/Annotation/Validated.php +++ b/src/Validate/Annotation/Validated.php @@ -404,7 +404,7 @@ public static function buildRole($reflectionClass, $roles = []) } } } - self::$cache[$reflectionClass->name] = $validRole; - return array_merge($validRole, $roles); + self::$cache[$reflectionClass->name] = array_merge($validRole, $roles); + return self::$cache[$reflectionClass->name]; } -} \ No newline at end of file +}