Skip to content

Commit

Permalink
Move var annotation to a more suitable location
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomartinezbernardo committed Jan 3, 2024
1 parent c592725 commit 73c1a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Integrations/Integrations/Slim/SlimIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 73c1a2b

Please sign in to comment.