From 3f66b7ecacfd5e88a40341fd44694276e413ec64 Mon Sep 17 00:00:00 2001 From: nikic Date: Sat, 12 May 2012 14:15:24 +0200 Subject: [PATCH] Update changelog --- CHANGELOG.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2627c104..280aa44d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. @@ -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.