refactor: fix PHPStan level 5 type errors across services #18
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-mcp#18
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Multiple service classes have missing or incomplete type declarations that would fail PHPStan level 5 analysis.
Problem Areas
AgentSessionService— 21 methods lack return type declarationsAgentToolRegistry— 11 methods lack return type declarationsAuditLogService— protected methodsgetSensitivityInfo(),redactFields(),redactRecursive()lack type hintsarraytype hints missing shape annotations (@param array<string, mixed>)?stringnotstring)Acceptance Criteria
./vendor/bin/phpstan analyse --level=5 src/with zero errorsFiles
src/Mcp/Services/src/Mcp/Tools/tool implementationsNotes
Also noted in TODO.md. Estimated effort: 2-3 hours.