Skip to content

Commit cbaed00

Browse files
authored
Merge pull request #21 from stellarwp/bugfix/php-types
Bugfix: PHP doc types
2 parents 1546ba4 + b255410 commit cbaed00

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

src/DB/QueryBuilder/Clauses/Where.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @since 1.0.0
1010
*/
1111
class Where {
12+
1213
/**
1314
* @var string
1415
*/
@@ -29,14 +30,9 @@ class Where {
2930
*/
3031
public $logicalOperator;
3132

32-
/**
33-
* @var string|null
34-
*/
35-
public $type;
36-
3733
/**
3834
* @param string $column
39-
* @param string $value
35+
* @param mixed $value
4036
* @param string $comparisonOperator
4137
* @param string|null $logicalOperator
4238
*/

src/DB/QueryBuilder/Concerns/WhereClause.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ trait WhereClause {
2929

3030
/**
3131
* @param string|Closure|null $column The Closure will receive a StellarWP\DB\QueryBuilder\WhereQueryBuilder instance
32-
* @param string|Closure|array|null $value The Closure will receive a StellarWP\DB\QueryBuilder\QueryBuilder instance
32+
* @param string|Closure|array|null|mixed $value The Closure will receive a StellarWP\DB\QueryBuilder\QueryBuilder instance
3333
* @param string $comparisonOperator
3434
* @param string $logicalOperator
3535
*
@@ -79,7 +79,7 @@ private function setWhere( $column, $value, $comparisonOperator, $logicalOperato
7979

8080
/**
8181
* @param string|Closure|null $column The closure will receive a StellarWP\DB\QueryBuilder\WhereQueryBuilder instance
82-
* @param string|Closure|array|null $value The closure will receive a StellarWP\DB\QueryBuilder\QueryBuilder instance
82+
* @param string|Closure|array|null|mixed $value The closure will receive a StellarWP\DB\QueryBuilder\QueryBuilder instance
8383
* @param string $comparisonOperator
8484
*
8585
* @return $this
@@ -95,7 +95,7 @@ public function where( $column, $value = null, $comparisonOperator = '=' ) {
9595

9696
/**
9797
* @param string|Closure $column
98-
* @param string|Closure|array|null $value
98+
* @param string|Closure|array|null|mixed $value
9999
* @param string $comparisonOperator
100100
*
101101
* @return $this
@@ -255,7 +255,7 @@ public function whereNotLike( $column, $value ) {
255255

256256
/**
257257
* @param string $column
258-
* @param string $value
258+
* @param mixed $value
259259
*
260260
* @return $this
261261
*/
@@ -269,7 +269,7 @@ public function orWhereLike( $column, $value ) {
269269

270270
/**
271271
* @param string $column
272-
* @param string $value
272+
* @param mixed $value
273273
*
274274
* @return $this
275275
*/

0 commit comments

Comments
 (0)