Open vanbe opened 1 year ago
Came to post this issue too. Have you considered a pull request? @nilportugues
To provide more context, this happens (at least to me), when trying to select all columns (when not specifying conditions), by just calling Select::setTable() and no other methods.
For the query string:
SELECT ``options_table``.* FROM ``options_table``
PHP 81
I'm considering releasing this package as a PHP 8.2 and above, yeah.
I'm considering releasing this package as a PHP 8.2 and above, yeah.
The big question is WHEN!?
I recently upgrated to PHP 8.2, and getting warnings on Column->setAlias($alias) function line 115.
Code:
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)) {