Skip to content

Commit ed23cd2

Browse files
committed
fix: Fix psalm issue by adding missing parameter for profiler
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 99b3377 commit ed23cd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Route/CachingRouter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private function serializeRouteCollection(RouteCollection $collection): array {
7474
* @return array
7575
*/
7676
public function findMatchingRoute(string $url): array {
77-
$this->eventLogger->start('cacheroute:match');
77+
$this->eventLogger->start('cacheroute:match', 'Match route');
7878
$key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . '#rootCollection';
7979
$cachedRoutes = $this->cache->get($key);
8080
if (!$cachedRoutes) {
@@ -83,7 +83,7 @@ public function findMatchingRoute(string $url): array {
8383
$this->cache->set($key, $cachedRoutes, 3600);
8484
}
8585
$matcher = new CompiledUrlMatcher($cachedRoutes, $this->context);
86-
$this->eventLogger->start('cacheroute:url:match');
86+
$this->eventLogger->start('cacheroute:url:match', 'Symfony URL match call');
8787
try {
8888
$parameters = $matcher->match($url);
8989
} catch (ResourceNotFoundException $e) {

0 commit comments

Comments
 (0)