refactor: add missing return type hints to 18+ methods #6
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
epic
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-admin#6
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?
Issue
18+ public methods are missing return type hints, violating project type safety conventions.
Files Affected
High Priority Methods
src/Website/Hub/View/Modal/Admin/PlatformUser.php:
exportUserData()- Missing return typeworkspaces()- Missing return typeavailablePackages()- Missing return typeallFeatures()- Missing return typerender()- Should returnVieworstringsrc/Website/Hub/View/Modal/Admin/ActivityLog.php:
render()- Missing return typesrc/Website/Hub/View/Modal/Admin/ServiceManager.php:
services()- Missing return typerender()- Missing return typesrc/Website/Hub/View/Modal/Admin/Console.php:
render()- Missing return typesrc/Website/Hub/View/Modal/Admin/WaitlistManager.php:
export()- Missing return typegetFilteredQuery()- Missing return typeMedium Priority
src/Mod/Hub/Migrations/*.php:
up()methods - Should returnvoiddown()methods - Should returnvoidsrc/Search/Concerns/HasSearchProvider.php:
src/Website/Hub/View/Modal/Admin/Settings.php:
$name,$default)Required Change
Add explicit return type hints:
Convention Reference
From CLAUDE.md:
Priority
High - Essential for type safety and IDE support.
Discovered by
Automatic codebase scan (issue #3)