diff --git a/src/DB/QueryBuilder/Clauses/Where.php b/src/DB/QueryBuilder/Clauses/Where.php index 11b719a..815ef06 100644 --- a/src/DB/QueryBuilder/Clauses/Where.php +++ b/src/DB/QueryBuilder/Clauses/Where.php @@ -9,6 +9,7 @@ * @since 1.0.0 */ class Where { + /** * @var string */ @@ -29,14 +30,9 @@ class Where { */ public $logicalOperator; - /** - * @var string|null - */ - public $type; - /** * @param string $column - * @param string $value + * @param mixed $value * @param string $comparisonOperator * @param string|null $logicalOperator */ diff --git a/src/DB/QueryBuilder/Concerns/WhereClause.php b/src/DB/QueryBuilder/Concerns/WhereClause.php index e62ed8f..d90b0c5 100644 --- a/src/DB/QueryBuilder/Concerns/WhereClause.php +++ b/src/DB/QueryBuilder/Concerns/WhereClause.php @@ -29,7 +29,7 @@ trait WhereClause { /** * @param string|Closure|null $column The Closure will receive a StellarWP\DB\QueryBuilder\WhereQueryBuilder instance - * @param string|Closure|array|null $value The Closure will receive a StellarWP\DB\QueryBuilder\QueryBuilder instance + * @param string|Closure|array|null|mixed $value The Closure will receive a StellarWP\DB\QueryBuilder\QueryBuilder instance * @param string $comparisonOperator * @param string $logicalOperator * @@ -79,7 +79,7 @@ private function setWhere( $column, $value, $comparisonOperator, $logicalOperato /** * @param string|Closure|null $column The closure will receive a StellarWP\DB\QueryBuilder\WhereQueryBuilder instance - * @param string|Closure|array|null $value The closure will receive a StellarWP\DB\QueryBuilder\QueryBuilder instance + * @param string|Closure|array|null|mixed $value The closure will receive a StellarWP\DB\QueryBuilder\QueryBuilder instance * @param string $comparisonOperator * * @return $this @@ -95,7 +95,7 @@ public function where( $column, $value = null, $comparisonOperator = '=' ) { /** * @param string|Closure $column - * @param string|Closure|array|null $value + * @param string|Closure|array|null|mixed $value * @param string $comparisonOperator * * @return $this @@ -255,7 +255,7 @@ public function whereNotLike( $column, $value ) { /** * @param string $column - * @param string $value + * @param mixed $value * * @return $this */ @@ -269,7 +269,7 @@ public function orWhereLike( $column, $value ) { /** * @param string $column - * @param string $value + * @param mixed $value * * @return $this */