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

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

Plugins:

  • When adding a plugin overriding the return type of a method,
    make it affect all methods of descendant classlikes that inherited that method definition.

New Features(Analysis)

  • Infer that !empty($x['field']...) also implies $x['field'] is non-falsey. (#3570)

Bug fixes:

  • Fix bug in native parsing of AST_TYPE_UNION (union type) nodes for PHP 8.0.0-dev.

  • Don't print duplicate entries for functions with alternate signatures in tool/make_stubs

  • Fix Error parsing internal template types such as non-empty-list<string> when using Type::fromFullyQualifiedString().

  • Fix warnings about password_hash() algorithm constants with php 7.4 (#3560)
    PASSWORD_DEFAULT became null in php 7.4, and other constants became strings.

    Note that you will need to run Phan with both php 7.4 and a target_php_version of 7.4 to fix the errors.

  • Fix uncaught AssertionError when parsing @return \\... (#3573)

Don't miss a new phan release

NewReleases is sending notifications on new releases.