From 6c9cf63ab8eb75b19b1d19a5f1fc8fc98a94f5a2 Mon Sep 17 00:00:00 2001 From: Stephen Page Date: Mon, 23 Oct 2023 16:24:01 -0400 Subject: [PATCH] string then null --- src/DB/DB.php | 2 +- src/DB/QueryBuilder/Clauses/From.php | 2 +- src/DB/QueryBuilder/Clauses/Join.php | 2 +- src/DB/QueryBuilder/Clauses/Select.php | 2 +- src/DB/QueryBuilder/Concerns/FromClause.php | 2 +- src/DB/QueryBuilder/Concerns/JoinClause.php | 6 +++--- src/DB/QueryBuilder/JoinQueryBuilder.php | 8 ++++---- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/DB/DB.php b/src/DB/DB.php index 491421a..f0cf42b 100644 --- a/src/DB/DB.php +++ b/src/DB/DB.php @@ -173,7 +173,7 @@ public static function prefix( $tableName ) { * Create QueryBuilder instance * * @param string|RawSQL $table - * @param null|string $alias + * @param string|null $alias * * @return QueryBuilder */ diff --git a/src/DB/QueryBuilder/Clauses/From.php b/src/DB/QueryBuilder/Clauses/From.php index ac45454..4ac4674 100644 --- a/src/DB/QueryBuilder/Clauses/From.php +++ b/src/DB/QueryBuilder/Clauses/From.php @@ -20,7 +20,7 @@ class From { /** * @param string|RawSQL $table - * @param null|string $alias + * @param string|null $alias */ public function __construct( $table, $alias = '' ) { $this->table = QueryBuilder::prefixTable( $table ); diff --git a/src/DB/QueryBuilder/Clauses/Join.php b/src/DB/QueryBuilder/Clauses/Join.php index 71e76d3..63c640d 100644 --- a/src/DB/QueryBuilder/Clauses/Join.php +++ b/src/DB/QueryBuilder/Clauses/Join.php @@ -28,7 +28,7 @@ class Join { /** * @param string $table * @param string $joinType \StellarWP\DB\QueryBuilder\Types\JoinType - * @param null|string $alias + * @param string|null $alias */ public function __construct( $joinType, $table, $alias = '' ) { $this->table = QueryBuilder::prefixTable( $table ); diff --git a/src/DB/QueryBuilder/Clauses/Select.php b/src/DB/QueryBuilder/Clauses/Select.php index 74bee4a..74831cd 100644 --- a/src/DB/QueryBuilder/Clauses/Select.php +++ b/src/DB/QueryBuilder/Clauses/Select.php @@ -18,7 +18,7 @@ class Select { /** * @param string $column - * @param null|string $alias + * @param string|null $alias */ public function __construct( $column, $alias = '' ) { $this->column = trim( $column ); diff --git a/src/DB/QueryBuilder/Concerns/FromClause.php b/src/DB/QueryBuilder/Concerns/FromClause.php index bb19e84..21f079a 100644 --- a/src/DB/QueryBuilder/Concerns/FromClause.php +++ b/src/DB/QueryBuilder/Concerns/FromClause.php @@ -17,7 +17,7 @@ trait FromClause { /** * @param string|RawSQL $table - * @param null|string $alias + * @param string|null $alias * * @return $this */ diff --git a/src/DB/QueryBuilder/Concerns/JoinClause.php b/src/DB/QueryBuilder/Concerns/JoinClause.php index 06fe4d2..43c5978 100644 --- a/src/DB/QueryBuilder/Concerns/JoinClause.php +++ b/src/DB/QueryBuilder/Concerns/JoinClause.php @@ -36,7 +36,7 @@ public function join( $callback ) { * @param string|RawSQL $table * @param string $column1 * @param string $column2 - * @param null|string $alias + * @param string|null $alias * * @return static */ @@ -56,7 +56,7 @@ function ( JoinQueryBuilder $builder ) use ( $table, $column1, $column2, $alias * @param string|RawSQL $table * @param string $column1 * @param string $column2 - * @param null|string $alias + * @param string|null $alias * * @return static */ @@ -76,7 +76,7 @@ function ( JoinQueryBuilder $builder ) use ( $table, $column1, $column2, $alias * @param string|RawSQL $table * @param string $column1 * @param string $column2 - * @param null|string $alias + * @param string|null $alias * * @return static */ diff --git a/src/DB/QueryBuilder/JoinQueryBuilder.php b/src/DB/QueryBuilder/JoinQueryBuilder.php index 9270aa0..a5a4499 100644 --- a/src/DB/QueryBuilder/JoinQueryBuilder.php +++ b/src/DB/QueryBuilder/JoinQueryBuilder.php @@ -19,7 +19,7 @@ class JoinQueryBuilder { /** * @param string|RawSQL $table - * @param null|string $alias + * @param string|null $alias * * @return $this */ @@ -33,7 +33,7 @@ public function leftJoin( $table, $alias = '' ) { /** * @param string|RawSQL $table - * @param null|string $alias + * @param string|null $alias * * @return $this */ @@ -47,7 +47,7 @@ public function rightJoin( $table, $alias = '' ) { /** * @param string|RawSQL $table - * @param null|string $alias + * @param string|null $alias * * @return $this */ @@ -122,7 +122,7 @@ public function joinRaw( $sql, ...$args ) { * * @param string $joinType * @param string|RawSQL $table - * @param null|string $alias + * @param string|null $alias * * @return $this */