Skip to content

Commit eddfd4f

Browse files
committed
Fix laminas
1 parent 878fca3 commit eddfd4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/DDTrace/Integrations/Laminas/LaminasIntegration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static function (SpanData $span) use ($controller, $action) {
304304
// Protected property access via Closure::bind (avoids
305305
// ReflectionProperty issues inside DDTrace sandbox).
306306
try {
307-
$_leafRoute = self::getLeafRouteFromNamedRouteStack($this, (string) $routeName);
307+
$_leafRoute = LaminasIntegration::getLeafRouteFromNamedRouteStack($this, (string) $routeName);
308308
if ($_leafRoute instanceof \Laminas\Router\Http\Regex) {
309309
$_routeRegex = \Closure::bind(
310310
static function ($r) { return $r->regex; },
@@ -1246,7 +1246,7 @@ private static function walkRouteStackCollectEndpointRows(
12461246
}
12471247
}
12481248

1249-
private static function getLeafRouteFromNamedRouteStack($stack, string $matchedName)
1249+
public static function getLeafRouteFromNamedRouteStack($stack, string $matchedName)
12501250
{
12511251
$segments = \explode('/', $matchedName, 2);
12521252
$route = self::laminasGetNamedRouteFromStack($stack, $segments[0]);

0 commit comments

Comments
 (0)