Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: PHP doc types #21

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading