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

fix: avoid ReflectionEnum usage #5453

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

nikophil
Copy link
Contributor

Q A
Branch? 3.1
License MIT

@soyuka
Copy link
Member

soyuka commented Mar 13, 2023

needs php-cs-fixer

@nikophil nikophil force-pushed the fix/avoid-enum-reflection branch from ac22aec to df35718 Compare March 13, 2023 14:24
@nikophil
Copy link
Contributor Author

linting ok ✔️

just FYI, here are the prototypes of try() and tryFrom() in php doc

public static [from](https://www.php.net/manual/fr/backedenum.from.php)(int|string $value): static
public static [tryFrom](https://www.php.net/manual/fr/backedenum.tryfrom.php)(int|string $value): ?static

@soyuka soyuka merged commit a5aa529 into api-platform:3.1 Mar 13, 2023
soyuka pushed a commit to soyuka/core that referenced this pull request Mar 17, 2023
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