Skip to content

Commit 0dd4cbb

Browse files
committed
chore(laravel): phpstan fixes
1 parent 510756c commit 0dd4cbb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Laravel/Eloquent/State/LinksHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ public function handleLinks(Builder $builder, array $uriVariables, array $contex
4747

4848
if ($operation instanceof HttpOperation) {
4949
foreach (array_reverse($operation->getUriVariables() ?? []) as $uriVariable => $link) {
50-
$builder = $this->buildQuery($builder, $link, $uriVariables[$uriVariable]);
50+
if (isset($uriVariables[$uriVariable])) {
51+
$builder = $this->buildQuery($builder, $link, $uriVariables[$uriVariable]);
52+
}
5153
}
5254

5355
return $builder;

0 commit comments

Comments
 (0)