-
Notifications
You must be signed in to change notification settings - Fork 222
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
Native PHP Enum fails #1092
Comments
Hey @nkamuo! Enum are supposed to work with the latest branch. What is your problem with the Enum? Can you share a piece of code? |
I have a PHP Enum File with the Following contents: And I get this Error: Invalid type for path "overblog_graphql_types.VehicleStatus._enum_config.values.PENDING.value". Expected "scalar", |
Can you post your enum? |
`<?php #[Enum]
} |
Same here with |
Same for me @ |
Native PHP 8.1 enums work for me on master branch. Are they supposted to work also on 0.15? @Vincz |
I think the issue is that the latest GraphQLBundle version (0.15.2) requires "webonyx/graphql-php": "^14.5", whilst webonyx enum support is in "webonyx/graphql-php": "^15.0" |
How do you sugget I resolve this? |
It doesn't work for me. Do you use any special config to make it work? |
Yes, the problem is the dependency to |
any updates here? for me still not working, and as far as I can see |
Hi @bogdandubyk! We are waiting a couple of days for #1119, #1071 and #1108 to get fixed by their respective contributors and we will publish a new release. |
sure, thank you for the quick response, I'll use dev-master for now on the local machine |
Sorry, but now I don't have free time for #1108 Maybe we release this issue later in another release? |
The v1.0 has been released ! |
Using PHP 8.1 native Enum with #[Enum] Attributes Fails.
I have an Enum File with the following contents
The text was updated successfully, but these errors were encountered: