mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-26 20:04:48 +01:00
Release PHP-Parser 2.0.1
This commit is contained in:
parent
9829bf69cd
commit
ce5be709d5
18
CHANGELOG.md
18
CHANGELOG.md
@ -1,8 +1,24 @@
|
|||||||
Version 2.0.1-dev
|
Version 2.0.2-dev
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Nothing yet.
|
Nothing yet.
|
||||||
|
|
||||||
|
Version 2.0.1 (2016-02-28)
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* `declare() {}` and `declare();` are not semantically equivalent and will now result in different
|
||||||
|
ASTs. The format case will have an empty `stmts` array, while the latter will set `stmts` to
|
||||||
|
`null`.
|
||||||
|
* Magic constants are now supported as semi-reserved keywords.
|
||||||
|
* A shebang line like `#!/usr/bin/env php` is now allowed at the start of a namespaced file.
|
||||||
|
Previously this generated an exception.
|
||||||
|
* The `prettyPrintFile()` method will not strip a trailing `?>` from the raw data that follows a
|
||||||
|
`__halt_compiler()` statement.
|
||||||
|
* The `prettyPrintFile()` method will not strip an opening `<?php` if the file starts with a
|
||||||
|
comment followed by InlineHTML.
|
||||||
|
|
||||||
Version 2.0.0 (2015-12-04)
|
Version 2.0.0 (2015-12-04)
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user