Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 9a3c67e

Browse files
committed
Improve comment
1 parent ac47101 commit 9a3c67e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Query/Builder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,9 +1002,9 @@ protected function compileWheres(): array
10021002
});
10031003
}
10041004

1005-
// The next item in a "chain" of wheres devices the boolean of the
1006-
// first item. So if we see that there are multiple wheres, we will
1007-
// use the operator of the next where.
1005+
// In a sequence of "where" clauses, the logical operator of the
1006+
// first "where" is determined by the 2nd "where".
1007+
// $where['boolean'] = "and", "or", "and not" or "or not"
10081008
if ($i == 0 && count($wheres) > 1
10091009
&& str_starts_with($where['boolean'], 'and')
10101010
&& str_starts_with($wheres[$i + 1]['boolean'], 'or')

0 commit comments

Comments
 (0)