Skip to content

Commit aa97a9b

Browse files
committed
Add changelog entries
1 parent aa72c5d commit aa97a9b

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
Version 4.2.2-dev
22
-----------------
33

4-
Nothing yet.
4+
### Added
5+
6+
* [PHP 7.4] Add support for arrow functions using a new `Expr\ArrowFunction` node. (#602)
7+
* [PHP 7.4] Add support for array spreads, using a new `unpack` subnode on `ArrayItem`. (#609)
8+
* Added support for inserting into empty list nodes in the formatting preserving pretty printer.
9+
10+
### Changed
11+
12+
* `php-parse` will now print messages to stderr, so that stdout only contains the actual result of
13+
the operation (such as a JSON dump). (#605)
14+
15+
### Fixed
16+
17+
* Fixed attribute assignment for zero-length nop statements, and a related assertion failure in
18+
the formatting-preserving pretty printer. (#589)
519

620
Version 4.2.1 (2019-02-16)
721
--------------------------

lib/PhpParser/PrettyPrinterAbstract.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,6 @@ protected function pArray(
877877
}
878878

879879
if (!empty($delayedAdd)) {
880-
// TODO Handle insertion into empty list
881880
if (!isset($this->emptyListInsertionMap[$mapKey])) {
882881
return null;
883882
}

0 commit comments

Comments
 (0)