Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed May 12, 2012
1 parent e16513a commit 3f66b7e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Version 0.9.2-dev
-----------------

* Fix parsing of new expressions in parentheses, e.g. `return(new Foo);`.

* [BC] Due to the below changes nodes now optionally accept an `$attributes` array as the
last parameter, instead of the previously used `$line` and `$docComment` parameters.

Expand All @@ -26,15 +28,15 @@ Version 0.9.2-dev

Now the lexer is injected only once when creating the parser. Instead of

$parser = new PHPParser_Parser;
$parser->parse(new PHPParser_Lexer($code));
$parser->parse(new PHPParser_Lexer($code2));
$parser = new PHPParser_Parser;
$parser->parse(new PHPParser_Lexer($code));
$parser->parse(new PHPParser_Lexer($code2));

you write:

$parser = new PHPParser_Parser(new PHPParser_Lexer);
$parser->parse($code);
$parser->parse($code2);
$parser = new PHPParser_Parser(new PHPParser_Lexer);
$parser->parse($code);
$parser->parse($code2);

* Fix `NameResolver` visitor to also resolve class names in `catch` blocks.

Expand Down

0 comments on commit 3f66b7e

Please sign in to comment.