Skip to content

refactor: apply rector code modernization across 64 files#4

Open
dac-ai-worker wants to merge 1 commit into
mainfrom
ai/rector-fixes
Open

refactor: apply rector code modernization across 64 files#4
dac-ai-worker wants to merge 1 commit into
mainfrom
ai/rector-fixes

Conversation

@dac-ai-worker

Copy link
Copy Markdown
Contributor

Summary

  • Apply rector code modernization across 64 source files
  • Constructor property promotion in 8+ classes (GlobalConfig, FHIR services, listeners, etc.)
  • Add readonly to promoted properties that are never reassigned
  • Initialize nullable typed properties with = null defaults
  • Add void return type to closures with no return
  • Remove dead code after return statements in createProvenanceResource methods
  • Add (string) casts where rector detected potential type mismatches
  • Fix createOpenEMRSearchParameters signature in 4 FHIR service classes to match parent trait
  • Set up unit test suite with separate bootstrap (no database required)
  • Fix test extending wrong TestCase class
  • Bump to v0.11.0

Test plan

  • composer test unit tests pass (4 tests, 16 assertions, 1 incomplete)
  • composer test-integration runs correctly in Docker environment
  • Verify FHIR endpoints still work after refactoring

🤖 Generated with Claude Code

Apply rector fixes: constructor property promotion, readonly properties,
null default initialization for nullable typed properties, void closure
return types, dead code removal after return statements, and string cast
fixes. Fix createOpenEMRSearchParameters signature in 4 FHIR service
classes. Set up unit test suite with separate bootstrap. Bump to v0.11.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant