PHP-Parser v0.5.0 Release Notes

Release Date: 2018-06-07 // over 3 years ago
  • โœจ Enhancements:

    • ๐Ÿ“œ Error-tolerant parsing
    • ๐Ÿ“œ Possibility to parse files concurrently
    • Saving all comments
    • Saving comments position

    ๐Ÿ’ฅ Breaking changes:

    • โœ‚ Removed DocComment and PlainComment types
    • โœ‚ Removed boolWithToken, altSintaxNode, nodesWithEndToken types
    • Created node.Root, node.ArgumentList, stmt.TraitAdaptationList, stmt.CaseList, stmt.ClassExtends, stmt.ClassImplements, stmt.InterfaceExtends, expr.Reference nodes
    • ๐Ÿ”„ Changed ClosureUse node purpose, now it represents variables list instead of wrapping the variable
    • ๐Ÿ— Builder was renamed to PositionBuilder
    • scanner.CreateToken returns pointer
    • scanner.Token saves position as position.Position
    • ๐Ÿ“ฆ Parser interface moved to parser package
    • ๐Ÿ“ฆ token package merged into scanner package
    • ๐Ÿ“ฆ Positions and Comments moved into parser package

    ๐Ÿ›  Fixes:

    • scanner: added (binary) cast
    • ๐Ÿ“œ #28 fixed race conditions
    • ๐Ÿšš #18 heredocLabelvariable moved from global into scanner.Lexer
    • ๐Ÿ›  fixed panic on 32-bit systems
    • ๐Ÿ›  fixed bug when scanning an empty inline comment
    • ๐Ÿ›  fixed namespace resolver fail on anonymous class
    • ๐Ÿ›  fixed the saving non-latin comments

    Optimisations:

    • โ™ป๏ธ #21 refactored scanner.Lexer.charsToBytes and renamed to scanner.Lexer.tokenString