Nikita Popov

Results 517 comments of Nikita Popov

@Juddling It's half-supported. The formatting of the array is preserved, but the new element is added on the same line. There is currently no detection that the array is formatted...

@Juddling I've just landed https://github.com/nikic/PHP-Parser/commit/1c7fd314d182bafd7254ca8d025a4d83a72a2d6a, so this case should now work correctly (that is, use multi-line formatting).

I've released a beta version for PHP-Parser 4.0 (https://github.com/nikic/PHP-Parser/releases/tag/v4.0.0beta1) and plan to create a stable release soonishly. I'd say that at this point, this feature is working pretty well, and...

@eeliu I can't reproduce this issue. The following test passes for me: ```

Which operation is performed using PHP-Parser here? This code is used by the formatting-preserving pretty printer. Which modification is being performed, if any?

Do you know which change Rector is attempting to make for that code?

I tried this test case: ```

Closing this as there is no self-contained reproducer (using PHP-Parser only).

Quite a lot here, I'll start with this: ``` php