Nikita Konstantinov

Results 24 comments of Nikita Konstantinov

> no closure I mean AST, text, source code. LIke it works for `assert()` (when it fails, it shows first argument in exception description). > That uniquely identifies two closures...

> information is not preserved @nikic btw, PHP preserves line numbers, probably it's possible to preserve offset (absolute or for this current line). In this case, it's possible to restore...

I agree, such offset value is very desirable. And `php-ast` is really need to be built-in part of PHP 8.

I think this package is too bugged (examples, at least, they are broken). If you want to rebuild exactly PhpParser, better clone https://github.com/nikic/PHP-Parser/tree/master/grammar, that one should work fine (rebuildParsers.php).