Skip to content

Commit

Permalink
the route is not resolved during preflight requests
Browse files Browse the repository at this point in the history
  • Loading branch information
leventcz committed May 23, 2024
1 parent 1bc4836 commit 0c3562b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/RequestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function requestHandled(RequestHandled $event): void
$duration = $startTime ? floor((microtime(true) - $startTime) * 1000) : null;

$request = HandledRequest::fromArray([
'uri' => sprintf('/%s', $event->request->route()->uri()), // @phpstan-ignore-line
'uri' => sprintf('/%s', $event->request->route()?->uri()), // @phpstan-ignore-line
'method' => $event->request->method(),
'timestamp' => now()->getTimestamp(),
'memory' => (int) $memory,
Expand Down

0 comments on commit 0c3562b

Please sign in to comment.