Skip to content

PHP 8.3 + Mago QA toolchain + Result test coverage - #39

Open
simon-mundy wants to merge 3 commits into
php-db:0.2.xfrom
simon-mundy:qa-refactor
Open

PHP 8.3 + Mago QA toolchain + Result test coverage#39
simon-mundy wants to merge 3 commits into
php-db:0.2.xfrom
simon-mundy:qa-refactor

Conversation

@simon-mundy

@simon-mundysimon-mundy commented Aug 24, 2026

Copy link
Copy Markdown
Member

Summary

  • Bumps minimum PHP to 8.3, matching pgsql
  • Swaps laminas-coding-standard/phpstan for the shared php-db/phpdb-qa-tools Mago setup
  • Adds test coverage for the shared core Pdo\Result class, including the new getQueryResult() method sqlite already gets for free (no sqlite-owned Result class to touch)
  • Reformat is its own commit, hash recorded in .git-blame-ignore-revs so git blame stays useful

Pre-existing lint/analyzer findings in untouched code are baselined, not fixed here — that's a separate job.

Test plan

  • composer test (97 unit tests)
  • composer test-integration (18 tests)
  • mago format --check, mago lint, mago analyze all clean

… coverage
php-db/phpdb 0.6.x added getQueryResult() to Driver\ResultInterface, which
Sqlite already satisfies for free via the shared core Pdo\Result class (no
sqlite-owned Result class exists). Ports the core's exhaustive Pdo\Result
unit test suite to cover it, matching the coverage mysql/pgsql carry for
their own Result classes.
Also replaces laminas-coding-standard/phpstan with the shared
php-db/phpdb-qa-tools Mago toolchain, mirroring phpdb-qa-analysis-sql:
mago.toml extending the shared base, the qa-tools phpunit.xml.dist
template, mago-based composer scripts, and the reusable CI workflow.
Pre-existing lint/analyzer findings in untouched code are captured in
lint-baseline.toml/analyzer-baseline.toml rather than fixed here.

@tyrssontyrsson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base config needs updated to align => in array's. mago supports it. There is also a few missing docblock types reported. If those are supposed to be part of the next set of changes disregard this.

@github-project-automationgithub-project-automationBot moved this from Todo to In Progress in @phpdb-sqliteAug 26, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants

@simon-mundy@tyrsson