Skip to content

feat: backed enums for models#803

Merged
sixlive merged 2 commits intoprism-php:mainfrom
ahinkle:allow-enums-in-using
Dec 21, 2025
Merged

feat: backed enums for models#803
sixlive merged 2 commits intoprism-php:mainfrom
ahinkle:allow-enums-in-using

Conversation

@ahinkle
Copy link
Copy Markdown
Contributor

@ahinkle ahinkle commented Dec 20, 2025

Description

This PR adds support for passing an enum to the model parameter of the using() method. Previously, users had to call ->value on their model enums when passing them to using(). This change keeps the calls fairly clean to match the first argument.

Copy link
Copy Markdown
Contributor

@sixlive sixlive left a comment

Choose a reason for hiding this comment

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

Slick, thanks!

@sixlive sixlive changed the title Allow backed enums in 'using' method feat: backed enums for models Dec 21, 2025
@sixlive sixlive merged commit 4601488 into prism-php:main Dec 21, 2025
13 of 14 checks passed
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