Skip to content

Regenerate the analyzer baseline under Mago 1.56.1 - #229

Merged
simon-mundy merged 1 commit into
php-db:0.6.xfrom
simon-mundy:chore/mago-1.56-baseline
Oct 12, 2026
Merged

simon-mundy merged 1 commit into
php-db:0.6.xfrom
simon-mundy:chore/mago-1.56-baseline

Conversation

@simon-mundy

Copy link
Copy Markdown
Member

CI installs the latest Mago through setup-php (tools: mago). The last green run on 0.6.x used 1.54.0. Under 1.56.1, mago analyze fails on 0.6.x with fifteen findings the baseline does not cover. This PR regenerates the analyzer baseline so the upcoming Sql compliance branches start from a green base. No source files change.

Result

Before After
Analyzer baseline (issues) 795 721
Analyzer baseline (entries) 602 576
Lint baseline unchanged unchanged
PHPUnit 2135 tests, 4091 assertions 2135 tests, 4091 assertions

mago format --check, mago lint, mago analyze and mago guard are clean under 1.56.1 for PHP 8.3, 8.4 and 8.5.

Newly reported, now baselined

  • AbstractRowGateway: possible method access on null (5)
  • AbstractTableGateway: mixed arguments to Update::join() (3), possible method access on null (3), and a nullable ResultInterface passed to ResultSetInterface::initialize() (2)
  • TableGatewayEvent::getParams(): imprecise array return type (1)
  • AbstractPdoConnection: passes a PDOStatement to DriverInterface::createResult(), whose parameter is documented as resource (1)

The last one is a real docblock mismatch rather than analyzer noise. It is left for the Adapter/Driver pass.

Dropped

89 entries for issues that no longer exist, left by the recent Sql and ResultSet work.

CI installs the latest Mago, and 1.56.1 reports fifteen findings the
1.52.0 baseline does not cover: null and mixed access in the two
gateways, a nullable result passed to ResultSetInterface::initialize(),
an imprecise array in TableGatewayEvent, and a PDOStatement passed where
DriverInterface::createResult() documents a resource.

The same run drops 89 entries for issues that no longer exist, left by
the Sql and ResultSet work. The baseline falls from 795 issues to 721.
@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@simon-mundy
simon-mundy marked this pull request as draft October 11, 2026 23:09
@simon-mundy
simon-mundy marked this pull request as ready for review October 11, 2026 23:34
@simon-mundy
simon-mundy requested a review from tyrsson October 11, 2026 23:34
@simon-mundy simon-mundy self-assigned this Oct 11, 2026
@simon-mundy simon-mundy added enhancement New feature or request qa Improvements in quality assurance of the project labels Oct 11, 2026
@github-project-automation github-project-automation Bot moved this to Todo in @phpdb Oct 11, 2026
@simon-mundy simon-mundy added this to the 0.6.0 milestone Oct 11, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in @phpdb Oct 12, 2026
@simon-mundy
simon-mundy merged commit 4ba1a1c into php-db:0.6.x Oct 12, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request qa Improvements in quality assurance of the project

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants