Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

michalsn
Copy link
Member

@michalsn michalsn commented Oct 9, 2025

Description
This PR adds enum casting for model and entity.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

fix phpstan errors

more validation and testing

feat: support casting values to enums
@michalsn michalsn added enhancement PRs that improve existing functionalities 4.7 labels Oct 9, 2025
Copy link
Contributor

@neznaika0 neznaika0 left a comment

Choose a reason for hiding this comment

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

Thanks, @michalsn. I'll use it in the project when I have time.

Copy link
Member

@paulbalandan paulbalandan left a comment

Choose a reason for hiding this comment

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

Minor comments.

Copy link
Member

@lonnieezell lonnieezell left a comment

Choose a reason for hiding this comment

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

Looks great! Very solid implementation.

@michalsn michalsn merged commit 37ff9fa into codeigniter4:4.7 Oct 10, 2025
50 checks passed
@michalsn
Copy link
Member Author

Thanks everyone for the review!

@michalsn michalsn deleted the feat/enum-cast branch October 10, 2025 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.7 enhancement PRs that improve existing functionalities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants