Skip to content

Releases: staabm/phpstan-dba

0.2.61

21 Feb 19:42
ffb14f3
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.60...0.2.61

0.2.60

17 Feb 17:52
de7782a
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.2.59...0.2.60

0.2.59

17 Feb 10:41
46828ba
Compare
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
Compare
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
Compare
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
Compare
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

0.2.55

06 Jan 19:53
af71a9e
Compare
Choose a tag to compare

Improvements

Enable it via RuntimeConfiguration:

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

requires transaction support in db schema and db driver

Full Changelog: 0.2.54...0.2.55

0.2.54

14 Dec 19:45
246281f
Compare
Choose a tag to compare

Features

Improvements

What's Changed

Full Changelog: 0.2.53...0.2.54

0.2.53

02 Dec 17:47
Compare
Choose a tag to compare
  • fix ReplayAndRecordingQueryReflector to report consistent results with RecordingReflector

Full Changelog: 0.2.52...0.2.53

0.2.52

21 Nov 09:10
Compare
Choose a tag to compare
  • work arround PHPStorm integration issues which lead to useless cache-files. phpstan-dba should be run across the whole project

Full Changelog: 0.2.51...0.2.52