packagist phan/phan 3.2.6
Release 3.2.6 supporting PHP 7.0-7.4 syntax

latest releases: v5.x-dev, dev-fix-4782, dev-MapReal-php81-82...
3 years ago

The Phan 3.x release line uses php-ast's AST version 70 and supports the analysis of all PHP 8.0 syntax except attributes (when run with PHP 8).
The planned 4.x release line will use AST version 80 and require php-ast 1.0.10+ in order to parse/analyze PHP 8.0's #[] attributes

New features (Analysis):

  • Update many more real parameter names to match php 8.0's parameter names for php's own internal methods. (#4263)
  • Infer that an instance property exists for PHP 8.0 constructor property promotion. (#3938)
  • Infer types of properties from arguments passed into constructor for PHP 8.0 constructor property promotion. (#3938)
  • Emit PhanInvalidNode and PhanRedefineProperty when misusing syntax for constructor property promotion. (#3938)
  • Emit PhanCompatibleConstructorPropertyPromotion when the project's minimum_target_php_version is older than 8.0 (#3938)
  • Emit PhanSuspiciousMagicConstant when using __FUNCTION__ inside of a closure. (#4222)

Don't miss a new phan release

NewReleases is sending notifications on new releases.