Skip to content

chore(psalm): drop six suppressions whose bugs are already gone - #976

Merged
rubenvdlinde merged 1 commit into
developmentfrom
chore/empty-stale-psalm-baseline
Aug 31, 2026
Merged

chore(psalm): drop six suppressions whose bugs are already gone#976
rubenvdlinde merged 1 commit into
developmentfrom
chore/empty-stale-psalm-baseline

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

All six entries in psalm-baseline.xml are stale. Emptying the baseline and re-running Psalm reports No errors found, so nothing in it still describes real code.

  • three entries named registerEventListener in lib/AppInfo/Application.php — that method is no longer in the file at all;
  • three named $statusCode in AnonymizationController and PdfController — those paths now type-check on their own.

A baseline that suppresses nothing real is not harmless. It invites the next entry instead of the next fix, and it makes the count meaningless as a trend. The file is kept but emptied, so a genuine future finding still has a deliberate home.

Verified locally with this repo own vendor/bin/psalm 5.26.1 on PHP 8.3: 271 files analysed, no errors with the baseline empty.

psalm-baseline.xml suppressed six InvalidArgument issues. None of them
still exist. Emptying the baseline and re-running Psalm reports "No errors
found", so every entry was outliving the code it described.

Three named registerEventListener in lib/AppInfo/Application.php, and that
method is not in the file any more. The other three named $statusCode in
AnonymizationController and PdfController, and those paths now type-check
on their own.

A baseline that suppresses nothing real is not neutral: it is a standing
invitation to add the next entry rather than fix the cause, and it hides
whether the count is going up or down. The file is kept, empty, so the
next genuine finding still has somewhere to be recorded deliberately.

Verified locally with the repo own vendor/bin/psalm 5.26.1 against
PHP 8.3: with the baseline emptied, 271 files analysed, no errors.
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/filinq @ 8c3da4c

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
test
test-unit
check-manifest
test-l10n
format
check-schema-l10n
check-l10n-js
composer ✅ 118/118
npm ✅ 631/631
app:check-code ⏭️
info.xml
REUSE
PHPUnit
Newman
Playwright ⏭️ deferred — runs on the promotion into beta/main, not on a pull request into development
Hydra gates

Quality workflow — 2026-08-31 16:08 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde merged commit 2f8c900 into development Aug 31, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant