From 016ae04ff6b4aefae78e19c64d8271357d911406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Wed, 3 Jan 2024 15:07:01 +0100 Subject: [PATCH] [10.x] Fix parentOfParameter method (#49548) --- src/Illuminate/Routing/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Routing/Route.php b/src/Illuminate/Routing/Route.php index 7664500784f8..02518733300c 100755 --- a/src/Illuminate/Routing/Route.php +++ b/src/Illuminate/Routing/Route.php @@ -583,7 +583,7 @@ public function parentOfParameter($parameter) { $key = array_search($parameter, array_keys($this->parameters)); - if ($key === 0) { + if ($key === 0 || $key === false) { return; }