Skip to content

Conversation

@0x46616c6b
Copy link
Member

This pull request refactors how the User entity is constructed and how its email property is managed throughout the codebase. The primary change is making the user's email a required constructor argument, which enforces that a User always has an email address upon instantiation. This update leads to changes in the entity itself, its trait, and all usages in commands, handlers, fixtures, tests, and validators.

This refactor enforces better type safety and consistency, ensuring that a User object is always created with an email address.

@sonarqubecloud
Copy link

@0x46616c6b 0x46616c6b merged commit 44ddb03 into main Dec 10, 2025
11 checks passed
@0x46616c6b 0x46616c6b deleted the Email-is-required-in-User-constructor branch December 10, 2025 21:09
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.

2 participants