staabm / phpstan-dba

PHPStan based SQL static analysis and type inference for the database access layer
https://staabm.github.io/archive.html#phpstan-dba
MIT License
249 stars 17 forks source link

dibi support DATE_FORMAT #642

Open patrickkusebauch opened 6 months ago

patrickkusebauch commented 6 months ago

Currently the DibiReflection bails out when it encounters the %m modifier anywhere in the query. However, this modifier is a valid modifier for DATE_FORMAT SQL function and in such case, it is not replaced by Dibi query builder and it should be just kept and the query reflection should not bail out.