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
250 stars 17 forks source link

give up sql based narrowing in case sqlftw cannot parse the query #598

Open staabm opened 1 year ago

staabm commented 1 year ago

maybe we can utilize the query from https://github.com/SQLFTW/sqlftw/issues/22 to simulate a query which sqlftw is not able to parse (I did not yet verify whether sqlftw throws on said query)

we just need tommake sure that phpstan-dba returns a type in a similar as it would do when sql ast is disabled