Releases: staabm/phpstan-dba
Releases · staabm/phpstan-dba
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
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
Major Feautures
- MariaDB is now supported
- via
RuntimeConfiguration
you can enable adebugMode
which leads to more information, in case of errors SyntaxErrorInPreparedStatementMethodRule
can now be used with PreparedStatement objects__construct()
:
services:
-
class: staabm\PHPStanDba\Rules\SyntaxErrorInPreparedStatementMethodRule
tags: [phpstan.rules.rule]
arguments:
classMethods:
- 'staabm\PHPStanDba\Tests\Fixture\PreparedStatement::__construct'
What's Changed
- typo by @staabm in #80
- Update README.md by @staabm in #81
- Fix
RecordingQueryReflector
to work phpstan and phpunit in tandem by @staabm in #82 - fix cs by @staabm in #83
- added multi line query test by @staabm in #86
- added mariadb coverage to github actions by @staabm in #84
- output simulated query on syntax errors when in debug-mode by @staabm in #85
- support prepared statement analysis of
construct()
-methods inSyntaxErrorInPreparedStatementMethodRule
by @staabm in #88
Full Changelog: 0.1.5...0.1.6