Skip to content

Commit 7c4fb13

Browse files
Forward all arguments to parent, instead of passing them manually (#425)
This ensures that `func_num_args()` in the parent class returns the correct number of passed arguments to the `->where()` method. This is necessary so the operator/value can be prepared appropriately.
1 parent 73531ed commit 7c4fb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Entries/EntryQueryBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'
181181
trigger_error('Filtering by status is deprecated. Use whereStatus() instead.', E_USER_DEPRECATED);
182182
}
183183

184-
return parent::where($column, $operator, $value, $boolean);
184+
return parent::where(...func_get_args());
185185
}
186186

187187
public function whereIn($column, $values, $boolean = 'and')
@@ -190,7 +190,7 @@ public function whereIn($column, $values, $boolean = 'and')
190190
trigger_error('Filtering by status is deprecated. Use whereStatus() instead.', E_USER_DEPRECATED);
191191
}
192192

193-
return parent::whereIn($column, $values, $boolean);
193+
return parent::whereIn(...func_get_args());
194194
}
195195

196196
private function ensureCollectionsAreQueriedForStatusQuery(): void

0 commit comments

Comments
 (0)