Skip to content

Releases: staabm/phpstan-dba

0.2.65

27 Feb 08:55
980fa40

Choose a tag to compare

What's Changed

  • Create QueryReflection lazily to prevent eager creation of a database connection by @staabm in #554

Full Changelog: 0.2.64...0.2.65

0.2.64

26 Feb 19:22
b7d0f28

Choose a tag to compare

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

25 Feb 07:43
c64db58

Choose a tag to compare

What's Changed

Full Changelog: 0.2.62...0.2.63

0.2.62

22 Feb 20:31
3c2e2c0

Choose a tag to compare

What's Changed

  • Prefer inference-placeholder over taint-escape sql by @staabm in #536
  • utilize composer autoloading in tests by @staabm in #537

Full Changelog: 0.2.61...0.2.62

0.2.61

21 Feb 19:42
ffb14f3

Choose a tag to compare

What's Changed

Full Changelog: 0.2.60...0.2.61

0.2.60

17 Feb 17:52
de7782a

Choose a tag to compare

What's Changed

Full Changelog: 0.2.59...0.2.60

0.2.59

17 Feb 10:41
46828ba

Choose a tag to compare

What's Changed

  • coalesce() unions only types until the first non-nullable by @staabm in #519
  • avg(nullable) can return null. avg(non-nullable) can't return null. by @staabm in #518

Full Changelog: 0.2.58...0.2.59

0.2.58

16 Feb 21:25
7f5fc7e

Choose a tag to compare

With this release phpstan-dba added new type narrowing capabilities based on SQL Query AST.
For now this feature needs to be enabled explicitly within your phpstan-dba configuration file:

See examples

$config = new RuntimeConfiguration();
$config->utilizeSqlAst(true);

Requirements:

  • PHP 7.4+
  • sqlftw/sqlftw need to be installed additionally via composer

What's Changed

  • Implement sqlftw/sqlftw sql parser based type narrowing by @staabm in #505
  • Fix wrong deprecated annotation by @mitelg in #512
  • Stringify types later in the chain. by @staabm in #513

New Contributors

Full Changelog: 0.2.57...0.2.58

0.2.57

16 Feb 14:54
0b6d95e

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.2.56...0.2.57

0.2.56

08 Jan 09:28
7d0fb3b

Choose a tag to compare

Improvements

Write-queries are analyzed by default and no longer executed and rollback'ed. the new logic also works for tables and databases which do not support transactions.

What's Changed

  • transform write query into read query by @staabm in #497

Full Changelog: 0.2.55...0.2.56