Skip to content

0.2.58

Compare
Choose a tag to compare
@staabm staabm released this 16 Feb 21:25
· 168 commits to main since this release
7f5fc7e

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