From a33fb4d0934c3b9b184ae90cfb245598c15d174d Mon Sep 17 00:00:00 2001 From: walkor Date: Wed, 11 Dec 2024 23:32:17 +0800 Subject: [PATCH] Optimization --- src/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker.php b/src/Worker.php index 3c396298..1b08e2db 100644 --- a/src/Worker.php +++ b/src/Worker.php @@ -709,7 +709,7 @@ protected static function init(): void // Start file. $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); - static::$startFile ??= end($backtrace)['file']; + static::$startFile = static::$startFile ?: end($backtrace)['file']; $startFilePrefix = basename(static::$startFile); $startFileDir = dirname(static::$startFile);