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

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

Phan 4 is out (requires php-ast 1.0.7+ or the polyfill to run, and uses AST version 80).
That release line will contain all of Phan's new features, bug fixes, and crash fixes.

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).

Maintenance:

  • Recommend using Phan 4 when analyzing code as a line printed to STDERR. (#4189)
  • Mention that Phan 4 has been released in --help, --version, and crash reports. (#4189)
    The environment variable PHAN_SUPPRESS_PHP_UPGRADE_NOTICE=1 can be set to disable this notice.
  • Warn if attempting to execute Phan 3.x with PHP 8.1-dev or newer (A future release of Phan 4+ will fully support 8.1)
    PHP 8.1 may contain changes to syntax that are unsupported by Phan 3 or the native/polyfill parsers.

Bug fixes

  • Fix false positive PhanPossiblyFalseTypeReturn with strict type checking for substr when target php version is 8.0+ (#4335)

Don't miss a new phan release

NewReleases is sending notifications on new releases.