From 73c1a2b889ccb5390e7d29936c3aecf528d8156d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Marti=CC=81nez=20Bernardo?= Date: Wed, 3 Jan 2024 14:13:39 +0100 Subject: [PATCH] Move var annotation to a more suitable location --- src/Integrations/Integrations/Slim/SlimIntegration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Integrations/Integrations/Slim/SlimIntegration.php b/src/Integrations/Integrations/Slim/SlimIntegration.php index f940246926..96757818cd 100644 --- a/src/Integrations/Integrations/Slim/SlimIntegration.php +++ b/src/Integrations/Integrations/Slim/SlimIntegration.php @@ -90,8 +90,8 @@ function ($errorMiddleware, $self, $args) use ($rootSpan, $integration) { 'Slim\\Router', 'lookupRoute', null, - /** @var \Slim\Interfaces\RouteInterface $return */ function ($router, $scope, $args, $return) use ($rootSpan) { + /** @var \Slim\Interfaces\RouteInterface $return */ $rootSpan->meta[Tag::HTTP_ROUTE] = $return->getPattern(); if (PHP_VERSION_ID < 70000 || dd_trace_env_config("DD_HTTP_SERVER_ROUTE_BASED_NAMING")) {