Skip to content

Commit

Permalink
Merge pull request #21 from stellarwp/bugfix/php-types
Browse files Browse the repository at this point in the history
Bugfix: PHP doc types
  • Loading branch information
defunctl authored Jun 6, 2024
2 parents 1546ba4 + b255410 commit cbaed00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
8 changes: 2 additions & 6 deletions src/DB/QueryBuilder/Clauses/Where.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @since 1.0.0
*/
class Where {

/**
* @var string
*/
Expand All @@ -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
*/
Expand Down
10 changes: 5 additions & 5 deletions src/DB/QueryBuilder/Concerns/WhereClause.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -255,7 +255,7 @@ public function whereNotLike( $column, $value ) {

/**
* @param string $column
* @param string $value
* @param mixed $value
*
* @return $this
*/
Expand All @@ -269,7 +269,7 @@ public function orWhereLike( $column, $value ) {

/**
* @param string $column
* @param string $value
* @param mixed $value
*
* @return $this
*/
Expand Down

0 comments on commit cbaed00

Please sign in to comment.