Skip to content

Commit

Permalink
Passing null to trim() is deprecated since PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Camwyn committed Oct 23, 2023
1 parent c2f929a commit 230d90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DB/QueryBuilder/Clauses/Join.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Join {
public function __construct( $joinType, $table, $alias = null ) {
$this->table = QueryBuilder::prefixTable( $table );
$this->joinType = $this->getJoinType( $joinType );
$this->alias = trim( $alias );
$this->alias = is_null( $alias ) ? null : trim( $alias );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/DB/QueryBuilder/Clauses/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ class Select {
*/
public function __construct( $column, $alias = null ) {
$this->column = trim( $column );
$this->alias = trim( $alias );
$this->alias = is_null( $alias ) ? null : trim( $alias );
}
}

0 comments on commit 230d90e

Please sign in to comment.