attribute-events
attribute-events copied to clipboard
Update AttributeEvents.php
Add support for PHP 8.1 Enums by converting the value to a string if the attribute is casted to a backed enum.
Related: https://github.com/jpkleemans/attribute-events/issues/11
Hi Jeffrey, thanks for your PR! 👍 Could you add a test case for this? (https://github.com/jpkleemans/attribute-events/blob/master/tests/AttributeEventsTest.php)
This is fixed in #13