From fc264630ecb39d10f1962c61ee90cac85688c6a5 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Thu, 2 Jan 2025 17:11:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(admin):=E9=87=8D=E6=9E=84=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3=E8=8E=B7=E5=8F=96=20upgrade=20annotations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace Doctrine annotations with PHP 8.1 attributes - Update annotation classes to use Attribute interface - Modify attribute usage across multiple controller files - Update composer.json to use doctrine/annotations ^2.0.0 --- app/admin/service/auth/Node.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/service/auth/Node.php b/app/admin/service/auth/Node.php index b2650e8..7d4f690 100644 --- a/app/admin/service/auth/Node.php +++ b/app/admin/service/auth/Node.php @@ -75,7 +75,7 @@ class Node $actionList[] = [ 'node' => $controllerFormat . '/' . $method->name, 'title' => $annotation->title ?? null, - 'is_auth' => $annotation->auth ?? null, + 'is_auth' => $annotation->auth ?? false, 'type' => 2, ]; }