Skip to content

Commit

Permalink
Update Builder.php
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed May 17, 2024
1 parent 74080ff commit 11b0c48
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions src/database/src/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1565,12 +1565,8 @@ public function orWhereFullText(array|string $columns, string $value, array $opt
* Add a "where" clause to the query for multiple columns with "and" conditions between them.
*
* @param string[] $columns
* @param mixed $operator
* @param mixed $value
* @param string $boolean
* @return $this
*/
public function whereAll($columns, $operator = null, $value = null, $boolean = 'and')
public function whereAll(array $columns, mixed $operator = null, mixed $value = null, string $boolean = 'and'): static
{
[$value, $operator] = $this->prepareValueAndOperator(
$value,
Expand All @@ -1591,11 +1587,8 @@ public function whereAll($columns, $operator = null, $value = null, $boolean = '
* Add an "or where" clause to the query for multiple columns with "and" conditions between them.
*
* @param string[] $columns
* @param string $operator
* @param mixed $value
* @return $this
*/
public function orWhereAll($columns, $operator = null, $value = null)
public function orWhereAll(array $columns, mixed $operator = null, mixed $value = null): static
{
return $this->whereAll($columns, $operator, $value, 'or');
}
Expand All @@ -1604,12 +1597,8 @@ public function orWhereAll($columns, $operator = null, $value = null)
* Add an "where" clause to the query for multiple columns with "or" conditions between them.
*
* @param string[] $columns
* @param string $operator
* @param mixed $value
* @param string $boolean
* @return $this
*/
public function whereAny($columns, $operator = null, $value = null, $boolean = 'and')
public function whereAny(array $columns, mixed $operator = null, mixed $value = null, string $boolean = 'and'): static
{
[$value, $operator] = $this->prepareValueAndOperator(
$value,
Expand All @@ -1630,11 +1619,8 @@ public function whereAny($columns, $operator = null, $value = null, $boolean = '
* Add an "or where" clause to the query for multiple columns with "or" conditions between them.
*
* @param string[] $columns
* @param string $operator
* @param mixed $value
* @return $this
*/
public function orWhereAny($columns, $operator = null, $value = null)
public function orWhereAny(array $columns, mixed $operator = null, mixed $value = null): static
{
return $this->whereAny($columns, $operator, $value, 'or');
}
Expand Down

0 comments on commit 11b0c48

Please sign in to comment.