Closed jiripudil closed 1 year ago
Thank you very much! I'm gonna release this as part of phpdoc-parser 1.21 but it's not going to be right away, because I just did this massive amount of work https://github.com/phpstan/phpdoc-parser/commit/308c57c96db3237c6648ca266a72516d2be82f0a which I still need to improve a bit :)
Sure, no rush :)
This PR adds support for an underscore separator in numeric literals, e.g.
The logic should be the same as supported by PHP (https://wiki.php.net/rfc/numeric_literal_separator). To maintain BC, this is also implemented similarly to how PHP does it: the separator is supported by the lexer but then stripped