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
{{ message }}
Repository navigation
PHPDoc lexer tokenization depends on LC_CTYPE #361
The lexer produces different tokens for the same PHPDoc depending on LC_CTYPE.
For example, under a Turkish UTF-8 locale, the identifier contentId is split at the uppercase I.
Causing an annotation like @param array{contentId: string} $var to be parsed as an InvalidTagValueNode.
The identifier pattern for this uses [a-z] with case-insensitive matching, which appears to be affected by the locale.
I would expect PHPDoc tokenization to be locale-independent, but please correct me if it is intended behavior.
This can be reproduced with the following small script and
Activity