Skip to content

Conversation

othercodes
Copy link
Contributor

No description provided.

@othercodes othercodes requested a review from Copilot October 13, 2025 03:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds named parameter support to the Complex Heart library's make() factory method. The feature enables PHP 8.0+ named parameter syntax for improved code readability and flexibility when creating Value Objects, Entities, and Aggregates.

Key changes:

  • Implemented named parameter detection and mapping logic in the IsModel trait
  • Added comprehensive test coverage for various named parameter scenarios
  • Updated documentation across multiple wiki files to demonstrate the new feature

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/IsModel.php Added core named parameter support with detection and mapping functionality
tests/TypeValidationTest.php Added comprehensive test suite covering named parameters, mixed parameters, and error scenarios
wiki/Domain-Modeling-Value-Objects.md Updated documentation with named parameter examples and benefits
wiki/Domain-Modeling-Entities.md Added named parameter examples for Entity creation
wiki/Domain-Modeling-Aggregates.md Updated to highlight named parameter benefits for complex constructors
README.md Added named parameter support to the feature list

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@othercodes othercodes merged commit c744ad9 into main Oct 13, 2025
6 checks passed
@othercodes othercodes deleted the feature/named-parameter-support branch October 13, 2025 03:23
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