fix(quality): the psalm and phpmd findings my container refactor introduced - #3534
Merged
rubenvdlinde merged 1 commit intoSep 8, 2026
Merged
Conversation
…oduced The development push run for #3532 went red on psalm and phpmd. Both are mine, and both were invisible to that PR's own checks because it ran psalm and phpmd per touched file rather than over the tree. - psalm: five errors. Four are UnusedBaselineEntry, twenty baselined UnusedParam entries the refactor made unnecessary because the parameters are used now. Removed. The fifth is OC_App::loadApp() in ImportHandler, a server internal psalm cannot see: it was unreachable before, and injecting IAppManager made psalm analyse the branch. Suppressed on the method docblock with the reason. UnusedBaselineEntry only ever appears on a FULL psalm run, never on a per-file one, which is why the PR's checks were green. - phpmd: SearchTrailMapper crossed the 1000-line ExcessiveClassLength threshold at 1015 when it gained the clearAllLogs() the admin endpoint had always called and that never existed. Suppressed with that reason, the idiom 74 other classes in this repo already use. Verified: psalm full run exit 0, both phpmd rulesets exit 0, phpcs exit 0 on both touched files, 19,454 unit tests exit 0 at peak 454 MB.
rubenvdlinde
deleted the
fix/psalm-and-phpmd-after-the-locator-refactor
branch
September 8, 2026 10:08
Contributor
Quality Report — ConductionNL/openregister @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ✅ | ||||
| phpmd | ✅ | ||||
| psalm | ✅ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ✅ | ||||
| stylelint | ✅ | ||||
| build | ✅ | ||||
| check-specs | ✅ | ||||
| test-l10n | ✅ | ||||
| test-l10n-parity | ✅ | ||||
| format | ✅ | ||||
| check-schema-l10n | ✅ | ||||
| check-l10n-js | ✅ | ||||
| composer | ✅ | ✅ 174/174 | |||
| npm | ✅ | ✅ 543/543 | |||
| 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-09-08 10:22 UTC
Download the full PDF report from the workflow artifacts.
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.
Why
The
developmentpush run for #3532 went red onPHP Quality (psalm)andPHP Quality (phpmd). Both findings are mine. psalm was green on the five commits before that merge and red on it.Both were invisible to #3532's own checks because that PR ran psalm and phpmd per touched file rather than over the tree, and the findings only exist at tree scope.
psalm, five errors
Four are
UnusedBaselineEntry: twenty baselinedUnusedParamentries acrossDestructionCheckJob,DestructionExecutionJob,DeckCardServiceandDeckLinkServicethat the refactor made unnecessary, because those parameters are used now. Removed frompsalm-baseline.xml.The fifth is
UndefinedClassfor\OC_App::loadApp()inImportHandler. The call predates this work, but psalm never reached it: the enclosing branch was only reachable through a container lookup psalm could not type, and injectingIAppManagermade the branch analysable.OC_Appis a Nextcloud server internal with no OCP equivalent forloadApp(), and it exists whenever that branch can run. Suppressed on the method docblock with the reason, which is the pattern the repo already uses forSecurityExceptionandTransliterator.UnusedBaselineEntryonly ever appears on a full psalm run. A per-file run cannot produce it, because psalm has to see the whole baseline used up before it can call an entry extra. That is why #3532 was green locally and red on CI.phpmd, one error
SearchTrailMappercrossed the 1000-lineExcessiveClassLengththreshold, at 1015. It gainedclearAllLogs()in #3532 because the admin endpoint had always called that method and it never existed, so the endpoint threw an\Errorfor an undefined method. Suppressed with that reason, the idiom 74 other classes in this repo already use, rather than adding a baseline entry.Verified locally
psalm --memory-limit=2G, full treephpmd libboth rulesets, with baselinephpcs --standard=phpcs.xmlon both touched filesphpunit tests/Unit --no-coverage🤖 Generated with Claude Code