Skip to content

Releases: staabm/phpstan-dba

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

0.1.7

12 Jan 10:56
caa9824
Compare
Choose a tag to compare

What's Changed

  • prepared statements: don't error on unknown types by @staabm in #89
  • Added code-style checking github action by @staabm in #90
  • fixed detection of syntax errors in prepared statements on konwn parameter types by @staabm in #91

Full Changelog: 0.1.6...0.1.7

0.1.6

12 Jan 09:03
6bc277e
Compare
Choose a tag to compare

Major Feautures

  • MariaDB is now supported
  • via RuntimeConfiguration you can enable a debugMode 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 in SyntaxErrorInPreparedStatementMethodRule by @staabm in #88

Full Changelog: 0.1.5...0.1.6