You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ParseError : syntax error, unexpected 'case' (T_CASE) on line 108 | {
9 | #[Description('Mr.')]
> 10 | case MR = 'mr';
| ^
11 |
12 | #[Description('Mrs.')]
13 | case MRS = 'mrs';
I got the idea of using attributes to describe enum cases from this blogpost. The php code runs fine without any issues, but Prettier thinks it's a syntax error.
The text was updated successfully, but these errors were encountered:
@prettier/plugin-php v0.22.1
Playground link
Input:
Output:
I got the idea of using attributes to describe enum cases from this blogpost. The php code runs fine without any issues, but Prettier thinks it's a syntax error.
The text was updated successfully, but these errors were encountered: