Skip to content

Commit 6375821

Browse files
committed
fix: 修复 SetRequestLifecycleListener 中请求生命周期选项的设置逻辑
1 parent cd8ca0e commit 6375821

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/telescope/src/Listener/SetRequestLifecycleListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function process(object $event): void
5252

5353
if (is_a($handler, HttpServer::class, true) || is_a($handler, RpcServer::class, true)) {
5454
$server['options'] ??= [];
55-
$server['options']['enable_request_lifecycle'] = true;
55+
$server['options']['enable_request_lifecycle'] ??= true;
5656
}
5757
}
5858

0 commit comments

Comments
 (0)