Skip to content

chore(psalm): remove obsolete UndefinedDocblockClass suppressions - #1134

Merged
ChristophWurst merged 2 commits into
masterfrom
fix/psalm-stale-dbal-suppression
Aug 28, 2026
Merged

chore(psalm): remove obsolete UndefinedDocblockClass suppressions#1134
ChristophWurst merged 2 commits into
masterfrom
fix/psalm-stale-dbal-suppression

Conversation

@ChristophWurst

Copy link
Copy Markdown
Member

Addresses the red CI of #1132.

NC36's OCP no longer references Doctrine\DBAL\Driver\Statement in its docblocks, so the UndefinedDocblockClass suppression for it is never hit and Psalm reports it as an UnusedIssueHandlerSuppression.

Assisted-by: ClaudeCode:claude-opus-4-8

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

NC36's OCP retyped OCP\DB\ISchemaWrapper to return OCP\DB\ITable instead
of Doctrine\DBAL\Schema\Table, so the migrations no longer resolve to any
undefined Doctrine DBAL class. The whole UndefinedDocblockClass handler
now suppresses nothing and Psalm reports it as UnusedIssueHandlerSuppression.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
@ChristophWurst
ChristophWurst force-pushed the fix/psalm-stale-dbal-suppression branch from dbcc940 to 67f4faa Compare August 26, 2026 08:39
@ChristophWurst ChristophWurst changed the title chore(psalm): drop stale Doctrine\DBAL\Driver\Statement suppression chore(psalm): remove obsolete UndefinedDocblockClass suppressions Aug 26, 2026
php-available resolves to PHP 8.5 for Nextcloud 36, where Psalm 6.16.1
crashes while stringifying rubix/ml's `const OUTLIER_VALUE = NAN`
(PHP 8.5 warns on NAN-to-string coercion and Psalm rethrows the warning).
Running on php-min keeps analysis on the version psalm.xml already targets.

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
@ChristophWurst
ChristophWurst merged commit 946e02e into master Aug 28, 2026
28 checks passed
@ChristophWurst
ChristophWurst deleted the fix/psalm-stale-dbal-suppression branch August 28, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants