refactor: add missing return type hints to 18+ methods #34
No reviewers
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#34
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/return-type-hints"
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
Fixes #6 — adds explicit return type declarations to 13 methods across 6 admin Livewire components that were missing them, improving type safety and IDE support per CLAUDE.md conventions.
Changes
exportUserData(): mixed,workspaces(): Collection,availablePackages(): Collection,allFeatures(): Collection,render(): Viewrender(): Viewservices(): Collection,render(): Viewrender(): Viewexport(): mixed,getFilteredQuery(): Builder,render(): Viewrender(): ViewNotes
up()/down()) andHasSearchProvidertrait already had correct return types — no changes needed.render()methods useIlluminate\Contracts\View\Viewmatching existing codebase convention.exportUserData()andexport()returnmixedbecause they delegate throughrateLimit()which returnsmixed.Test plan
php -l) on all 6 modified files🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.