Skip to content

Commit

Permalink
Add a missing return statement
Browse files Browse the repository at this point in the history
This is now necessary since a return type hint was added. This backports #27 to the 3.x and intermediate branches.
  • Loading branch information
mpdude committed Jun 6, 2022
1 parent fc467c7 commit c13bfec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tree/Finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ public function lookup($provided): ?Node
}
}

if (null !== $bestId) {
return $this->objects[$this->idToHash[$bestId]];
if (null === $bestId) {
return null;
}

return $this->objects[$this->idToHash[$bestId]];
}
}

0 comments on commit c13bfec

Please sign in to comment.