Closed FabianRahm closed 3 years ago
PR #177
To be more precise: This issue also occurs when not in strict_mode and with a Select as simple as the following.
return $this->getSql()->select()
->group(['id']); // or just as string 'id'
This breaks the script with the TypeError as shown in the first post. Did temporarly apply the fix from PR 177 as now I can upgrade to PHP 8.
Are there any progress on this? This is annoying bug with trivial fix, blocking migration to PHP 8.0.
@boesing @samsonasik Is it possible to release this fix as new patch version?
laminas/laminas-db
does not declare itself compatible with PHP 8 yet: https://github.com/laminas/laminas-db/blob/d2d2606f253d41bb2f44c591f5cfedc576dd86ea/composer.json#L32
In order to fix this correctly, we should address #174 first.
Bug Report
Summary
Using SQL with the TableGateway pattern and a closure with a join on another table fails on the GROUP BY clause while strict types are enabled in PHP 8.0. The identical code runs flawlessly in the latest PHP 7.4.
Current behavior
File:
Message:
Stack trace:
How to reproduce
Expected behavior
The query is executed without an exception.