Skip to content

Releases: staabm/phpstan-dba

0.2.3

20 Jan 17:18
b9d0ba5
Compare
Choose a tag to compare
0.2.3 Pre-release
Pre-release

Major Features

  • when debugMode is enabled via RuntimeConfiguration 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

Full Changelog: 0.2.2...0.2.3

0.2.2

20 Jan 09:03
590fc32
Compare
Choose a tag to compare
0.2.2 Pre-release
Pre-release

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

19 Jan 17:26
954101c
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release

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

19 Jan 14:47
88e3749
Compare
Choose a tag to compare
0.2 Pre-release
Pre-release

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() and extractNamedPlaceholders() into QueryReflection 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

17 Jan 10:26
2eaf50b
Compare
Choose a tag to compare

Major Features

  • Support \Doctrine\DBAL\Connection->query() syntax error checking by @staabm in #66

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

Full Changelog: 0.1.12...0.1.13

0.1.12

12 Jan 21:18
909ec00
Compare
Choose a tag to compare

What's Changed

  • support named placeholders in LIMIT clause by @staabm in #101
  • Refactoring: inline builtSimulatedQuery() by @staabm in #102
  • refactor MysqliQueryReflector to reduce numer of executed queries by @staabm in #103

Full Changelog: 0.1.11...0.1.12

0.1.11

12 Jan 16:57
9e12104
Compare
Choose a tag to compare

What's Changed

  • fixed error with placeholders in LIMIT clause by @staabm in #99

Full Changelog: 0.1.10...0.1.11

0.1.10

12 Jan 15:36
6e0aac3
Compare
Choose a tag to compare

What's Changed

  • reduce the risk of possible concurrency issues in ReflectionCache by @staabm in #97
  • typo by @staabm in #98

Full Changelog: 0.1.9...0.1.10

0.1.9

12 Jan 14:39
5613361
Compare
Choose a tag to compare

What's Changed

  • more fine grained ReflectionCache change-detection by @staabm in #96

Full Changelog: 0.1.8...0.1.9

0.1.8

12 Jan 13:17
b9a5574
Compare
Choose a tag to compare

What's Changed

  • make RecordingQueryReflector work, without the need to pass --debug by @staabm in #95

Full Changelog: 0.1.7...0.1.8