-
Notifications
You must be signed in to change notification settings - Fork 114
Open
@vanbe
Description
I recently upgrated to PHP 8.2, and getting warnings on Column->setAlias($alias) function line 115.
Code:
public function setAlias($alias)
{
if (0 == \strlen($alias)) {
$this->alias = null;
return $this;
}
if ($this->isAll()) {
throw new QueryException("Can't use alias because column name is ALL (*)");
}
$this->alias = (string) $alias;
return $this;
}
Throws Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in ...app/Vendor/nilportugues/sql-query-builder/src/Syntax/Column.php on line 115
The strlen line should be:
if ($alias === null || 0 == \strlen($alias)) {
Metadata
Metadata
Assignees
Labels
No labels