Releases: staabm/phpstan-dba
Releases · staabm/phpstan-dba
0.2.69
What's Changed
- DoctrineKeyValueStyeRule: allow int values in float columns by @hemberger in #581
- SQL AST: COUNT cannot return null by @hemberger in #584
- Fix mysql type mapper by @jakubvojacek in #583
- Update symplify/easy-coding-standard requirement from ^11.2 to ^11.3 by @dependabot in #586
Full Changelog: 0.2.68...0.2.69
0.2.68
What's Changed
- DoctrineKeyValueStyleRule: properly handle unions by @hemberger in #575
- Sql AST: avg/min/max/count can get null on empty result sets by @staabm in #579
- Fix sql ast type inference on raw-sql expression without aliases by @jakubvojacek in #582
- Expand TypeMapper tests to include mysqli/pgsql by @hemberger in #573
Full Changelog: 0.2.67...0.2.68
0.2.67
What's Changed
- MysqlTypeMapper: add support for FLOAT types by @hemberger in #572
- support for cross joins. don't error on joins of subqueries by @jakubvojacek in #569
- Implement
RuntimeConfig->parameterTypeValidation('strict'|'lax')
and use it in DoctrineKeyValueStyleRule by @hemberger in #563
Full Changelog: 0.2.66...0.2.67
0.2.66
Improvements
- DoctrineKeyValueStyleRule: improve table error message by @hemberger in #564
- prevent excessive sql queries in DoctrineKeyValueStyleRule by @staabm in #557
Bleeding Edge / Behind Feature Flag
- Narrow types via join / join-condition by @staabm in #531
- SQL AST inference is only supported for mysql backends for now by @staabm in #567
Updates
- Update tomasvotruba/unused-public requirement from ^0.0.34 to ^0.1.3 by @dependabot in #556
- Update tomasvotruba/unused-public requirement from ^0.1.3 to ^0.1.7 by @dependabot in #558
- Update tomasvotruba/unused-public requirement from ^0.1.7 to ^0.1.8 by @dependabot in #565
Full Changelog: 0.2.65...0.2.66
0.2.65
0.2.64
What's Changed
- enable
phpstan/phpstan-deprecation-rules
by @staabm in #544 - handle optional dependencies in build step by @staabm in #545
- fix deprecations by @staabm in #546
- Fix query simulation leading to query error by @staabm in #549
- Fix another query simulation leading to query error by @staabm in #550
- error on from table-name create from function-call by @staabm in #459
Full Changelog: 0.2.63...0.2.64
0.2.63
What's Changed
- Add DoctrineKeyValueStyleRule by @hemberger in #529
- implement
REPLACE()
inference by @staabm in #539 - extracted
DBA_MODE
constants by @staabm in #540 - Fix query building with constant assignments by @staabm in #542
- run tests in php 7.2 with lowest by @staabm in #543
Full Changelog: 0.2.62...0.2.63
0.2.62
0.2.61
What's Changed
- support sqlftw/sqlftw 0.1.7 by @staabm in #533
- Warn when queries cannot be resolved unexpectedly by @hemberger in #508
- enable rules for project internal analysis by @staabm in #530
- Test PHP 7.2 in github action by @staabm in #523
- Add ECS and apply standard sets by @TomasVotruba in #528
Full Changelog: 0.2.60...0.2.61
0.2.60
What's Changed
- Enable query-alias-test for pdo-mysql by @staabm in #520
- implement if-expression inference by @staabm in #521
- implement case-expression inference by @staabm in #522
- implement
sum()
inference by @staabm in #524 - Cover
count(*)
in tests by @staabm in #525 - Cover complex
ifnull(max(...))
in tests by @staabm in #526
Full Changelog: 0.2.59...0.2.60