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
260 stars 18 forks source link

PHP 8.1, PDO, MySQL, Decimal column #428

Closed marmichalski closed 2 years ago

marmichalski commented 2 years ago

Hello,

decimal type is returned as string in PHP, but phpstan-dba thinks it's a float :cry:.

This is, of course, without stringified fetches.

(unless I miss something :scream:)

staabm commented 2 years ago

Thx for reporting. Are you willing to contribute?

the relevant parts can be found here

marmichalski commented 2 years ago

Thx for reporting. Are you willing to contribute?

Yes, of course, but probably next week :see_no_evil: