Skip to content

Commit 29bda13

Browse files
Add extra comment
1 parent d9675b6 commit 29bda13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/QueryBuilder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ public function __call($name, $arguments)
9797
{
9898
$result = $this->forwardCallTo($this->subject, $name, $arguments);
9999

100+
/*
101+
* If the forwarded method call is part of a chain we can return $this
102+
* instead of the actual $result to keep the chain going.
103+
*/
100104
if ($result === $this->subject) {
101105
return $this;
102106
}

0 commit comments

Comments
 (0)