Skip to content

Commit

Permalink
Add extra comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Aug 18, 2020
1 parent d9675b6 commit 29bda13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ public function __call($name, $arguments)
{
$result = $this->forwardCallTo($this->subject, $name, $arguments);

/*
* If the forwarded method call is part of a chain we can return $this
* instead of the actual $result to keep the chain going.
*/
if ($result === $this->subject) {
return $this;
}
Expand Down

0 comments on commit 29bda13

Please sign in to comment.