Releases: staabm/phpstan-dba
Releases · staabm/phpstan-dba
0.2.25
0.2.24
0.2.23
Major Improvements
- PDOStatement generic types got simplified, to no longer include the previous technically necessary BOTH type
- Preparations for PGSQL support
What's Changed
- added
PdoStatementObjectTypeby @staabm in #322 - fix typo in
PdoStatement.stubby @staabm in #324 - simplify
PdoStatementColumnCountDynamicReturnTypeExtensionby @staabm in #325 - added doctrine-ObjectTypes by @staabm in #326
- added
MysqliResultObjectTypeby @staabm in #327 - fix cs by @staabm in #329
- fix cs by @staabm in #330
- Add Postgres to Github workflows by @p4veI in #320
- tests: change adaid type to smallint, to easy cross-db tests by @staabm in #331
- tests: use more portable types by @staabm in #332
- GithubActions: re-evaluate cs job on „ready-to-review“ by @staabm in #334
- Remove phpstan-ignore-next-line by @staabm in #333
- Remove ignore-next-line by @staabm in #335
Full Changelog: 0.2.22...0.2.23
0.2.22
0.2.21
0.2.20
0.2.19
Major Features
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_COLUMNinfetch()by @staabm in #302 - PDO: support
PDO::FETCH_COLUMNinfetchAll()by @staabm in #301 - PDO: added
PDO::FETCH_KEY_PAIRsupport by @staabm in #303 - PDO: Added
PDO::FETCH_CLASSsupport onfetch*(),fetchObject()by @staabm in #304
What's Changed
- de-duplicate reflector Error logic by @staabm in #287
PDOStatement->fetch()may returnfalseif 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
0.2.18
Major Changes
- Introduce PDO based
QueryReflectorby @p4veI in #261- not yet on feature/performance parity with
MysqliReflector, but it will provide our base for getting PGSQL support
- not yet on feature/performance parity with
SyntaxErrorInQueryMethodRule: allow abstract classes in "classMethods" by @voku in #234
What's Changed
- Remove recording workaround by @staabm in #270
- Added env vars for Testsuite db-credentials, re-use ReflectorFactory in /bootstrap.php by @staabm in #280
- moved Rule* tests into a separate testsuite by @staabm in #283
- Skip Rule* tests when not using
MysqliReflectorby @staabm in #284 - remove leftover
--debugby @staabm in #285
Full Changelog: 0.2.17...0.2.18
0.2.17
Major Changes
- Prototype support for bindValue/bindParam on PDOStatement by @xPaw in #265
- Add
RuntimeConfiguration->defaultFetchMode()option by @xPaw in #256
What's Changed
- Update README.md by @staabm in #250
- support queries containing
implode()of constant values by @staabm in #239 - extracted
PdoStatementReflection->getStatementResultType()for re-use by @staabm in #257 - simplify
PdoStatementExecuteTypeSpecifyingExtensionby @staabm in #259 - enforce strict comparison by @staabm in #260
- Extract & refactor mysqli TypeMapping by @p4veI in #262
- simplify
PdoStatementReflectionby @staabm in #263 - refactored
PdoStatementReflectionby @staabm in #264 - Refactoring by @staabm in #266
- put both-type and fetch-type into
PDOStatementgeneric by @staabm in #268 - de-duplicate test bootstrap logic by @staabm in #271
- simplify mapper to prepare re-use by @staabm in #272
New Contributors
Full Changelog: 0.2.16...0.2.17