0.2.58
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