I'm used to Prettier auto formatting a semi-colon at the end of my javascript code. But it doesn't work as well on php code. Does anyone have a solution for this? I'm a VS Code user.
I loathe this error statement.
Unexpected '}'. Expected ';'.intelephense(P1001)
@ulzhang In Javascript the semi colon is a matter of preference. In PHP it is a mandatory part of the language. Its the same as remembering to type $ before your variables. You will learn it in about 2 days of coding.
The point about the IDE is that if for some reason you forget, your ide will suggest there is something wrong.