kphp icon indicating copy to clipboard operation
kphp copied to clipboard

namespace name is interpreted as a single token

Open i582 opened this issue 3 years ago • 0 comments

RFC: https://wiki.php.net/rfc/namespaced_names_as_token

KPHP already interprets namespace names as a single token, like PHP 8. The only change here is that now keywords after the namespace will not be converted to keyword tokens, thus it will be possible to create a namespace with a name like a keyword, as in PHP 8.

For example:

namespace fn;

i582 avatar Oct 14 '21 00:10 i582