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

Can not use PHP enum for tag attribute value #1006

Closed
o-ba opened this issue Sep 25, 2024 · 2 comments
Closed

Can not use PHP enum for tag attribute value #1006

o-ba opened this issue Sep 25, 2024 · 2 comments

Comments

@o-ba
Copy link
Member

o-ba commented Sep 25, 2024

When using a PHP Enum as attribute value following exception is thrown:

Error: Object of class Vendor\Site\SomeEnum could not be converted to string

@mbrodala
Copy link
Contributor

On that note: PHP RFC: Auto-implement Stringable for string backed enums (Status: Withdrawn)

@s2b
Copy link
Contributor

s2b commented Sep 25, 2024

Resolved with #1007

@s2b s2b closed this as completed Sep 25, 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

No branches or pull requests

3 participants