github phan/phan 4.0.0-alpha1
Release 4.0.0-alpha1 supporting PHP 7.0-8.0 syntax

latest releases: 5.4.3, 5.4.2, 5.4.1...
pre-release3 years ago

The Phan v4 release line has the following changes from Phan 3:

  • Bump the minimum required AST version from 70 to 80 (Required to analyze php 8.0 attributes - the rest of the php 8.0 syntax changes are supported in both Phan 3 and Phan 4).
    A few third party plugins may be affected by the increase of the AST version.
  • Supports analyzing whether #[...] attributes are used properly when run with PHP 8.0+

New features (Analysis):

  • Support analyzing PHP 8.0 attributes when Phan is run with php 8.0 or newer.
    Warn if the attribute syntax is likely to be incompatible in php 7.
    Warn if using attributes incorrectly or with incorrect argument lists.

    New issue types: PhanCompatibleAttributeGroupOnSameLine, PhanCompatibleAttributeGroupOnMultipleLines,
    PhanAttributeNonAttribute, PhanAttributeNonClass, PhanAttributeNonRepeatable,
    PhanUndeclaredClassAttribute, PhanAttributeWrongTarget, PhanAccessNonPublicAttribute.

Backwards incompatible changes:

  • Switch from AST version 70 to AST version 80.
    php-ast should be upgraded to version 1.0.10-dev or newer.
  • Drop the no-op --polyfill-parse-all-doc-comments flag.

Miscellaneous:

  • Make various classes from Phan implement Stringable.

Don't miss a new phan release

NewReleases is sending notifications on new releases.