Skip to content

refactor: resolve psalm baseline issues - #67730

Open
susnux wants to merge 3 commits into
masterfrom
worktree-psalm-baseline-analysis
Open

susnux wants to merge 3 commits into
masterfrom
worktree-psalm-baseline-analysis

Conversation

@susnux

@susnux susnux commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolve some paslm issues by adding a new helper that deduplicates the error code to exception casting.

Checklist

AI (if applicable)

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

@susnux
susnux requested review from a team as code owners December 5, 2026 23:00
@susnux
susnux requested review from leftybournes, pabzm, salmart-dev and vlotysh and removed request for a team December 5, 2026 23:00
@susnux susnux changed the title Worktree psalm baseline analysis refactor: resolve psalm baseline issues Dec 5, 2026
@susnux susnux added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Dec 5, 2026
@susnux
susnux requested review from CarlSchwan and removed request for pabzm December 5, 2026 23:01
The IL10N instance is always set in the constructor from IFactory::get(), which never returns null. The nullable type only produced 42 psalm baseline entries.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
The updater is only built by the DI container, which always injects a logger. The nullable type only produced 31 psalm baseline entries.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Exception codes are not always integers: PDOException carries the SQLSTATE string (e.g. "HY000"). Passing such a code on to StorageNotAvailableException threw a TypeError, so callers never got the StorageNotAvailableException they handle.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux
susnux force-pushed the worktree-psalm-baseline-analysis branch from b8f909a to d7fdb81 Compare December 6, 2026 13:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants