packagist phan/phan 0.12.0
Development release 0.12.0 supporting PHP 7.0, 7.1, and 7.2 syntax

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

The Phan 0.12.0 release supports analysis of php 7.0-7.2, and can be executed with php 7.0+.

This release replaces all of the previous releases (The 0.11 releases for php 7.2, the 0.10 releases for php 7.1, and the 0.8 releases for php 7.0)

See the file NEWS.md for what has changed in this version.

Because Phan uses Reflection, it's recommended (but not necessary) to use the same PHP minor version for analyzing the code as would be used to run the code.
(For the small number of function/method signatures, etc., that were added or changed in each minor release of PHP.)

After upgrading Phan, projects using phan should add a target_php_version setting to their .phan/config.php.

  • This defaults to the same PHP minor version as the PHP binary used to run Phan.
    target_php_version can be set to '7.0', '7.1', '7.2', or null/'native'.

    NOTE: This setting does not let a PHP 7.0 installation parse PHP 7.1 nullable syntax or PHP 7.1 array destructuring syntax.
    If you are unable to upgrade the PHP version used for analysis to php 7.1, the polyfill parser settings may help
    (See --force-polyfill-parser or --use-fallback-parser. Those have a few known bugs in edge cases.)

Don't miss a new phan release

NewReleases is sending notifications on new releases.