4 ms·
I still think the debate over renaming that token had the wrong premise. It's not like “Expected T_STRING” is helpful either (yes that's real, no it's not a str
by TazeTSchnitzel 4y ago
I still think the debate over renaming that token had the wrong premise. It's not like “Expected T_STRING” is helpful either (yes that's real, no it's not a string literal). Token names are never user-friendly and shouldn't be user-facing, they should be an implementation detail.
- beberlei 4y agoTokens are left out of parse errors since PHP 8 released 2 years ago See https://3v4l.org/2T8qQ https://3v4l.org/2T8qQ
- krick 4y agoWeird, I didn't see that trash for so long I thought it was fixed at least in 7.0.
- TazeTSchnitzel 4y agoPHP 7 fully reworked the syntax to be more internally consistent and intuitive, so there's a lot less arbitrary restrictions that cause syntax errors.