Skip to content

0.2.19

Compare
Choose a tag to compare
@staabm staabm released this 19 Feb 09:12
· 251 commits to main since this release
29dddd0

Major Features

  • implement type inference for union-types in sql queries by @staabm in #290

example:

$queries = ['SELECT adaid FROM ada', 'SELECT email FROM ada'];

foreach ($queries as $query) {
    $stmt = $pdo->prepare($query);
    $result = $stmt->fetch(PDO::FETCH_ASSOC);
    assertType('array{adaid: int<0, 4294967295>}|array{email: string}|false', $result);
}
  • PDO: support PDO::FETCH_COLUMN in fetch() by @staabm in #302
  • PDO: support PDO::FETCH_COLUMN in fetchAll() by @staabm in #301
  • PDO: added PDO::FETCH_KEY_PAIR support by @staabm in #303
  • PDO: Added PDO::FETCH_CLASS support on fetch*(), fetchObject() by @staabm in #304

What's Changed

  • de-duplicate reflector Error logic by @staabm in #287
  • PDOStatement->fetch() may return false if there no is no data even in exception mode by @staabm in #281
  • exclude tests/ from releases by @staabm in #288
  • union query PDO->query() test coverage by @staabm in #293
  • mysqli: implement type inference for union-types in sql queries by @staabm in #294
  • doctrine-dbal: implement union query types by @staabm in #295
  • doctrine-dbal: union query fetch types by @staabm in #296

Full Changelog: 0.2.18...0.2.19