Skip to content

Commit 4608339

Browse files
Bakketaylorotwell
authored andcommitted
Do not require Closure in orWhereHas (#18277)
Fixes #18262
1 parent e874a56 commit 4608339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function whereHas($relation, Closure $callback = null, $operator = '>=',
130130
* @param int $count
131131
* @return \Illuminate\Database\Eloquent\Builder|static
132132
*/
133-
public function orWhereHas($relation, Closure $callback, $operator = '>=', $count = 1)
133+
public function orWhereHas($relation, Closure $callback = null, $operator = '>=', $count = 1)
134134
{
135135
return $this->has($relation, $operator, $count, 'or', $callback);
136136
}

0 commit comments

Comments
 (0)