Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 09 May 13:52
· 156 commits to main since this release

Added

  • Enhanced parser validation for constructor promotion modifiers — explicitly rejects multiple modifiers on promoted parameters in anonymous classes and refines declare -r BASHOPTS="checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath"
    declare -ar BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
    declare -ir EUID="1001"
    declare -ir PPID="2160"
    declare -r SHELLOPTS="braceexpand:hashall:interactive-comments"
    declare -ir UID="1001" validation on properties ().
  • Improved error diagnostics with proper error context in recovery paths — error recovery now preserves more meaningful context for debugging ().
  • CI validation: printer output now validated against No syntax errors detected in Standard input code to ensure round-trip output is syntactically valid PHP ().
  • Comprehensive printer edge-case coverage including expressions with empty arguments, property hooks, DNF types, pipe operator expressions, and clone with list arguments ().

Fixed

  • Parser validates parenthesized arrow functions in pipe operator () expressions — prevents invalid syntax like ().
  • Parser now rejects invalid PHP constructs during parsing rather than silently accepting them and potentially dropping AST nodes ().
  • Control characters in heredoc/nowdoc and braces in string interpolation now properly escaped in printer output ().
  • Variadic parameter modifiers now print in correct order ( before ) to match PHP syntax ().
  • Printer now always emits parentheses for expressions, ensuring valid PHP output in all contexts ().
  • Property hooks printer fixture updated with valid PHP syntax and edge cases ().

Changed

  • All calls replaced with with documented invariants explaining why panic is guaranteed not to occur ().
  • Clippy warnings in example binaries resolved ().
  • Test fixtures now include sections where appropriate to validate against PHP's own syntax validation ().
  • Fixture test runner parallelized with for faster test execution ().

Documentation

  • Added inline documentation explaining dead-code suppressions in test utilities ().
  • Parser recursion depth limits and error recovery behavior documented in source ().

Tests

  • Comprehensive edge cases for variadic parameter modifiers ().
  • Printer fixtures expanded to cover expressions, property hooks, and DNF type combinations ().