PHP-Parser v0.6.0 Release Notes

Release Date: 2019-02-25 // about 5 years ago
  • ๐Ÿ†• new

    golang/json dumper
    ๐Ÿ–จ saving and printing free-floating comments and whitespaces

    nodes

    ๐Ÿšš attribute StringVar was removed from expr.Variable
    ๐Ÿšš node stmt.Die was removed, added Die attribute to stmt.Exit instead

    optimizations

    ๐Ÿ’พ save position within node
    ๐Ÿ”€ use sync.Pool to reuse scanner.Token

    ๐Ÿ›  bugfix

    __halt_compiler(); terminates parsing process
    accept backslash+newline in single quotes
    ๐Ÿ›  fixed /*/ comment termination
    ๐Ÿ›  fixed crash on an empty list item, missed items are represented by empty *expr.ArrayItem