Skip to content

v0.30.0

Choose a tag to compare

@github-actions github-actions released this 28 May 06:44
· 353 commits to main since this release

Fixed

  • $argv and $argc are now seeded as predefined globals, eliminating UndefinedVariable false positives in CLI scripts.
  • Single-star /* @var $this */ annotations (the form PhpStorm generates for Yii2 view templates) are now recognized in addition to /** PHPDoc blocks. Fixes #290.
  • PossiblyUndefinedVariable false positives eliminated for variables assigned inside while(true) and for(;;) loops before every break. Infinite loops no longer treat the "loop never executes" path as reachable.
  • UnusedVariable and UnusedParam false positives eliminated for variables read only inside a diverging if-branch (one that always returns or throws).

Changed

  • Upgraded php-rs-parser, php-ast, php-lexer, and phpdoc-parser to 0.15.0. Function and closure bodies are now wrapped in a Block type; class/enum/interface/trait members are behind ClassBody/EnumBody wrappers.