Migrate to Mago, add Codecov and Infection (drops PHP 8.2) - #53
Merged
Conversation
Replaces laminas/laminas-coding-standard + PHPStan with php-db/phpdb-qa-tools' shared Mago config, and swaps the CI workflow from laminas-ci-matrix-action to phpdb-qa-tools' reusable continuous-integration.yml. - composer.json: drop phpcs/phpstan deps, add php-db/phpdb-qa-tools (0.1.x-dev) and infection/infection (^0.34.1), rewrite scripts to call mago directly (composer scripts are for local convenience only, CI never invokes mago through composer) - Drop PHP 8.2 support (EOL ~4 months out): infection/infection >=0.33 requires PHP >=8.3, and composer.json's platform.php override applies that floor across the whole require-dev tree regardless of which CI job actually uses a given dependency - mago.toml: new file extending the shared qa-tools base - Remove phpcs.xml.dist, phpstan.neon.dist, phpstan-baseline.neon, .laminas-ci.json - Swap coveralls.yml for codecov.yml; drop the upload-coverage script - Add infection.json5.dist (staticAnalysisTool: mago, mirrors the pattern from webinertia/message-bus) - .github/workflows/continuous-integration.yml: thin caller into phpdb-qa-tools' reusable workflow (mago + test jobs, enable-codecov, enable-infection, MySQL DB-service inputs), plus a standalone integration job workaround is no longer needed now that the reusable workflow supports a DB service natively - Narrow CI triggers to pull_request (targeting numbered release branches only) and push of version tags; no push:branches (branch protection blocks direct pushes, and pull_request already re-triggers on synchronize) No source or test file changes in this commit — pure tooling/config swap. Depends on php-db/phpdb-qa-tools#3.
This was referenced Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Migrates phpdb-mysql's tooling to Mago, consuming php-db/phpdb-qa-tools#3, plus adds Codecov and Infection.
composer.json: droplaminas/laminas-coding-standard+phpstan/*, addphp-db/phpdb-qa-tools(0.1.x-dev) andinfection/infection(^0.34.1). Scripts rewritten to callmagodirectly — kept for local/end-user convenience only, CI never invokes mago through composer.infection/infection>=0.33 requires PHP >=8.3, and this repo'sconfig.platform.phpoverride applies that floor to the entirerequire-devtree regardless of which CI job actually uses a given dependency — confirmed empirically, there's no way to keep 8.2 and add Infection's Mago integration at the same time.mago.toml: new, extends the shared qa-tools base (php-version = "8.3.0").phpcs.xml.dist,phpstan.neon.dist,phpstan-baseline.neon,.laminas-ci.json.coveralls.yml→codecov.yml; dropped theupload-coveragescript.infection.json5.dist(staticAnalysisTool: "mago", mirrors webinertia/message-bus's pattern)..github/workflows/continuous-integration.yml: thin caller into qa-tools' reusable workflow —run-integration: true, MySQL DB-service inputs,enable-codecov: true,enable-infection: true,secrets: inherit.pull_request(targeting numbered release branches only,[0-9]+.[0-9]+.x) andpushof version tags ([0-9]+.[0-9]+.[0-9]+) — nopush:branches, since branch protection blocks direct pushes andpull_requestalready re-triggers on every commit viasynchronize.Why
See php-db/phpdb-qa-tools#3 for the shared workflow side of this. This PR is the first driver package to consume it, and doubles as the reference example other driver packages (Postgres, SQLite, ...) can copy from for wiring up their own DB service.
Scope notes
mago format/mago lint --fixhas deliberately not been run yet; that mechanical reformat is its own follow-up PR, isolated +.git-blame-ignore-revs.mago lint/analyze/guardfindings once this merges — those are not triaged here, by design.phpunit.xml.distis unchanged (custom MySQL env vars +ListenerExtensionbootstrap for integration tests) — every php-db driver package needs its own PHPUnit config for its seeded RDBMS, not a shared template.Depends on php-db/phpdb-qa-tools#3.