From 52904386538a9b673662e58a43b2ef8a4a7d0604 Mon Sep 17 00:00:00 2001 From: David Maicher Date: Mon, 6 Oct 2025 09:41:06 +0200 Subject: [PATCH] fix Symfony 7.4 deprecation for Request::get() --- src/NodeVisitor/NodeActivator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NodeVisitor/NodeActivator.php b/src/NodeVisitor/NodeActivator.php index 8c459d1..aaf9c64 100644 --- a/src/NodeVisitor/NodeActivator.php +++ b/src/NodeVisitor/NodeActivator.php @@ -23,7 +23,7 @@ public function visit(Node $node): void return; } - if (in_array($request->get('_route'), $node->getAllActiveRoutes())) { + if (in_array($request->attributes->get('_route'), $node->getAllActiveRoutes(), true)) { $node->setActive(true); return;