Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionality to work with enum casting #43

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MarcosBarbalho
Copy link

Summary

Firstly, I would like to thank all the work done on this package and everyone who contributed to its development so far.

This PR enables the use of Enums and Enum Casting in the construction of State Machines.

The problem was identified by us when we tried to work with our Casting pattern and received errors reporting the incorrect type of data.

This update does not have any breaking changes, and I tried to cover as many cases as possible in the test cases.

If you see any possible improvements in how the code was written, feel free to contact me through this PR.

Thank everyone who contributed to issue #33 that reported this possible improvement.

I am available to contact via email at any time.

Thank you and LET'S GO!

Issue

#33

Type of Change

  • 🚀 New Feature
  • 🐛 Bug Fix
  • 🔨 Refactor
  • ❓ [Other]

Screenshot/Video

code

feat: added functionality to work with enum casting
@gavinhewitt
Copy link

Would be nice if this could get merged! Why the delay?

@DennyLoko
Copy link

@asantibanez any news regarding this PR?

@MarcosBarbalho
Copy link
Author

There was a version conflict because I used arrow functions in the implementation of this feature, and this functionality was added in later versions of PHP. The most recent commit fixes this.

@MarcosBarbalho MarcosBarbalho requested a review from Garanaw August 26, 2024 15:50
@maksym-odanets
Copy link

maksym-odanets commented Oct 19, 2024

@asantibanez Please merge it 🙏

maksym-odanets pushed a commit to maksym-odanets/laravel-eloquent-state-machines that referenced this pull request Oct 23, 2024
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.

5 participants