forrest79 / phpgsql

Simple and fast PHP database library for PostgreSQL with auto converting DB types to PHP and fluent interface for SQL query writing.
Other
11 stars 3 forks source link

PHPStan: can set custom Row object for iteration #31

Closed forrest79 closed 7 months ago

forrest79 commented 3 years ago

It could be handy to set also custom Row object for iterator on Db\Result and Fluent\QueryExecute - I need some simple technique to overwrite default settings - I think, that it's not possible right now in PHPStan and I don't want to use templates and set on many places default Db\Row.

forrest79 commented 7 months ago

Iteration on Db\Result and Fluent\QueryExecute is deprecated. Use fetchIterator(). This can be narrowed with PHPStan.