Releases: staabm/phpstan-dba
Releases · staabm/phpstan-dba
0.2.3
Major Features
- when
debugMode
is enabled viaRuntimeConfiguration
phpstan-dba now reports which queries could not be analyzed, because of unknown types. this should help to get an overview which queries are covered by the tool.
What's Changed
- refactor Rule-Error-Message formatting into Error object by @staabm in #162
- report unresolvable queries/params in debug-mode by @staabm in #164
- cover more unresolvable-query cases by @staabm in #165
- cover more unresolvable-query cases by @staabm in #166
- cover more unresolvable-query cases by @staabm in #167
- rename a few things for clarity by @staabm in #168
- more unresolvable coverage by @staabm in #169
- fix typos by @staabm in #170
Full Changelog: 0.2.2...0.2.3
0.2.2
What's Changed
- Github Actions: remove
--no-suggest
by @staabm in #157 - Don't error on prepared statements containing unspecified arrays by @staabm in #158
- prevent wrong type inference on doctrine dbal 2.x by @staabm in #151
- try to create cache file if none exist by @staabm in #159
- use shared read/write lock in ReflectionCache to prevent race conditions by @staabm in #160
- mark phpstan-dba cache files as generated by @staabm in #161
Full Changelog: 0.2.1...0.2.2
0.2.1
What's Changed
- RuntimeConfiguration: Allow opt-in for bool handling by @staabm in #148
- docs by @staabm in #149
- support array-bound values to support IN(:param) expressions by @staabm in #152
- doctrine-dbal: use proper interface types by @staabm in #150
- don't report placeholder errors on non-SELECT statements for now by @staabm in #153
Full Changelog: 0.2...0.2.1
0.2
Major Features
- Doctrine-DBAL 3.x Support
- Prepared Statement placeholder/bound-value mismatch detection
- Type inference for aggregate functions
- Improved type-coverage for more native mysql column types
What's Changed
- Detect syntax errors in
Doctrine\DBAL\Connection::execute*()
methods by @staabm in #116 - doctrine dbal: cover deprecated api by @staabm in #117
- Added initial Doctrine Dbal type inference by @staabm in #115
- moved
countPlaceholders()
andextractNamedPlaceholders()
intoQueryReflection
by @staabm in #118 - Skip queries containing placeholders in
SyntaxErrorInQueryMethodRule
by @staabm in #119 - SyntaxErrorRules: early-return when required arguments are missing by @staabm in #120
- support phpstan 1.4.x by @staabm in #121
- Added testcase by @staabm in #124
- added left join coverage by @staabm in #126
- Support union-type in type-inferrence by @staabm in #127
- cover queries across branches by @staabm in #129
- cover more mysql types by @staabm in #130
- Unsigned bigint cannot be smaller than 0 by @staabm in #134
- Added support for aggregate functions by @staabm in #135
- support conditional errors in queries by @staabm in #136
- extracted placeholder validation into separate class by @staabm in #137
- support conditional errors in
PDOStatement->execute()
analysis by @staabm in #138 - refactor placeholder validation to ease re-use by @staabm in #139
- added placeholder validation to
SyntaxErrorInPreparedStatementMethodRule
by @staabm in #140 - Support queries with multiple same named placeholder by @staabm in #141
- Prevent syntax error on query with trailling semicolon by @staabm in #142
- readme: simplify intro by @staabm in #143
- make sure placeholders in query-string-data does not interfere with the analysis by @staabm in #145
- use separate lock-file to prevent race conditions by @staabm in #146
- prevent unnecessary work in union type queries by @staabm in #147
Full Changelog: 0.1.13...0.2
0.1.13
Major Features
What's Changed
- use phpstan 1.3.x for now.. something in 1.4.x broke the build by @staabm in #113
- Support complete placeholder name matching by @Seldaek in #111
- Create a single Installation section by @craigfrancis in #107
- Add support for JSON columns and nullability for string column types by @Seldaek in #110
- Do not run PDO namedPlaceholders checks with question mark parameters by @craigfrancis in #105
New Contributors
- @Seldaek made their first contribution in #111
- @craigfrancis made their first contribution in #107
Full Changelog: 0.1.12...0.1.13