From 1c69c18174424e7e00761f4ecfd11fe3e3f727a9 Mon Sep 17 00:00:00 2001 From: Shueh Chou Lu Date: Tue, 5 Oct 2021 11:01:33 +0800 Subject: [PATCH] fix request_handled closed when it created (#19) Bug in c730c12 --- src/Collectors/RouteCollector.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Collectors/RouteCollector.php b/src/Collectors/RouteCollector.php index 77cf78b..cf7cef4 100644 --- a/src/Collectors/RouteCollector.php +++ b/src/Collectors/RouteCollector.php @@ -21,8 +21,7 @@ public function registerEventListeners(): void $this->endSegment('route matching'); try { $this->addSegment('request handled') - ->addAnnotation('controller', $this->getController()) - ->end(); + ->addAnnotation('controller', $this->getController()); } catch (\Exception $e) { $this->handleException($e); }