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);