Skip to content

Commit f03823c

Browse files
committed
Merge branch '2.x'
Conflicts: CHANGELOG.md
2 parents 1ab24d2 + 4dd659e commit f03823c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
Version 3.0.0-dev
2-
-----------------
32

43
### Added
54

65
* The `InlineHTML` node now has an `hasLeadingNewline` attribute, that specifies whether the
76
preceding closing tag contained a newline. The pretty printer honors this attribute.
87

8+
The following changes are also part of PHP-Parser 2.1.1:
9+
10+
* The PHP 7 parser will now generate a parse error for `$var =& new Obj` assignments.
11+
* Comments on free-standing code blocks will no be retained as comments on the first statement in
12+
the code block.
13+
914
Version 3.0.0-alpha1 (2016-07-25)
1015
---------------------------------
1116

@@ -59,6 +64,19 @@ Additionally the following changes were made:
5964
* The deprecated `Comment::setLine()` and `Comment::setText()` methods have been removed.
6065
* The deprecated `Name::set()`, `Name::setFirst()` and `Name::setLast()` methods have been removed.
6166

67+
Version 2.1.1 (2016-09-16)
68+
--------------------------
69+
70+
### Changed
71+
72+
* The pretty printer will now escape all control characters in the range `\x00-\x1F` inside double
73+
quoted strings. If no special escape sequence is available, an octal escape will be used.
74+
* The quality of the error recovery has been improved. In particular unterminated expressions should
75+
be handled more gracefully.
76+
* The PHP 7 parser will now generate a parse error for `$var =& new Obj` assignments.
77+
* Comments on free-standing code blocks will no be retained as comments on the first statement in
78+
the code block.
79+
6280
Version 2.1.0 (2016-04-19)
6381
--------------------------
6482

0 commit comments

Comments
 (0)