Skip to content

Commit 840c8d6

Browse files
authored
more comprehensive type hinting of the $operator parameter (#49599)
1 parent 3141ef2 commit 840c8d6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/Illuminate/Database/Query/Builder.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ public function orWhereNotNull($column)
13791379
* Add a "where date" statement to the query.
13801380
*
13811381
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1382-
* @param string $operator
1382+
* @param \DateTimeInterface|string|null $operator
13831383
* @param \DateTimeInterface|string|null $value
13841384
* @param string $boolean
13851385
* @return $this
@@ -1403,7 +1403,7 @@ public function whereDate($column, $operator, $value = null, $boolean = 'and')
14031403
* Add an "or where date" statement to the query.
14041404
*
14051405
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1406-
* @param string $operator
1406+
* @param \DateTimeInterface|string|null $operator
14071407
* @param \DateTimeInterface|string|null $value
14081408
* @return $this
14091409
*/
@@ -1420,7 +1420,7 @@ public function orWhereDate($column, $operator, $value = null)
14201420
* Add a "where time" statement to the query.
14211421
*
14221422
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1423-
* @param string $operator
1423+
* @param \DateTimeInterface|string|null $operator
14241424
* @param \DateTimeInterface|string|null $value
14251425
* @param string $boolean
14261426
* @return $this
@@ -1444,7 +1444,7 @@ public function whereTime($column, $operator, $value = null, $boolean = 'and')
14441444
* Add an "or where time" statement to the query.
14451445
*
14461446
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1447-
* @param string $operator
1447+
* @param \DateTimeInterface|string|null $operator
14481448
* @param \DateTimeInterface|string|null $value
14491449
* @return $this
14501450
*/
@@ -1461,7 +1461,7 @@ public function orWhereTime($column, $operator, $value = null)
14611461
* Add a "where day" statement to the query.
14621462
*
14631463
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1464-
* @param string $operator
1464+
* @param \DateTimeInterface|string|int|null $operator
14651465
* @param \DateTimeInterface|string|int|null $value
14661466
* @param string $boolean
14671467
* @return $this
@@ -1489,7 +1489,7 @@ public function whereDay($column, $operator, $value = null, $boolean = 'and')
14891489
* Add an "or where day" statement to the query.
14901490
*
14911491
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1492-
* @param string $operator
1492+
* @param \DateTimeInterface|string|int|null $operator
14931493
* @param \DateTimeInterface|string|int|null $value
14941494
* @return $this
14951495
*/
@@ -1506,7 +1506,7 @@ public function orWhereDay($column, $operator, $value = null)
15061506
* Add a "where month" statement to the query.
15071507
*
15081508
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1509-
* @param string $operator
1509+
* @param \DateTimeInterface|string|int|null $operator
15101510
* @param \DateTimeInterface|string|int|null $value
15111511
* @param string $boolean
15121512
* @return $this
@@ -1534,7 +1534,7 @@ public function whereMonth($column, $operator, $value = null, $boolean = 'and')
15341534
* Add an "or where month" statement to the query.
15351535
*
15361536
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1537-
* @param string $operator
1537+
* @param \DateTimeInterface|string|int|null $operator
15381538
* @param \DateTimeInterface|string|int|null $value
15391539
* @return $this
15401540
*/
@@ -1551,7 +1551,7 @@ public function orWhereMonth($column, $operator, $value = null)
15511551
* Add a "where year" statement to the query.
15521552
*
15531553
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1554-
* @param string $operator
1554+
* @param \DateTimeInterface|string|int|null $operator
15551555
* @param \DateTimeInterface|string|int|null $value
15561556
* @param string $boolean
15571557
* @return $this
@@ -1575,7 +1575,7 @@ public function whereYear($column, $operator, $value = null, $boolean = 'and')
15751575
* Add an "or where year" statement to the query.
15761576
*
15771577
* @param \Illuminate\Contracts\Database\Query\Expression|string $column
1578-
* @param string $operator
1578+
* @param \DateTimeInterface|string|int|null $operator
15791579
* @param \DateTimeInterface|string|int|null $value
15801580
* @return $this
15811581
*/

0 commit comments

Comments
 (0)