From d9f1612e8ea22cc0ee09ccf26ead1d8f993e9612 Mon Sep 17 00:00:00 2001 From: Qi HU Date: Thu, 2 Oct 2025 21:46:24 +0800 Subject: [PATCH] fix: Fix duplicate includes in app.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we use `php artisan optimize` command, it will cause duplicate includes: ``` PHP Fatal error: Cannot redeclare function get_global_sp_state() (previously declared in include/globalfunctions.php:3) in include/globalfunctions.php on line 3 Symfony\Component\ErrorHandler\Error\FatalError Cannot redeclare function get_global_sp_state() (previously declared in include/globalfunctions.php:3) at include/globalfunctions.php:3 1▕ --- bootstrap/app.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/app.php b/bootstrap/app.php index ff794e48..a0a85e61 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -1,9 +1,9 @@