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

pgsql support for uuid type #600

Open akondas opened 1 year ago

akondas commented 1 year ago

Invalid string type is substituted when column type is uuid (for pgsql):

  Line   src/Some/Infrastructure/Doctrine/Dbal/DbalSomeQuery.php                                                              
 ------ ----------------------------------------------------------------------------------------------------------------------- 
  22     Query error: SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type uuid: "1970-01-01"  
         LINE 1: ...some_limit, state FROM offer WHERE inquiry_id = '1970-01-0...                                             
                                                                      ^ (22P02).