Skip to content

Commit

Permalink
[10.x] Fix parentOfParameter method (#49548)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo authored Jan 3, 2024
1 parent 757848e commit 016ae04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 016ae04

Please sign in to comment.