phan v2.4.5 Release Notes

Release Date: 2019-12-11 // over 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)
    0๏ธโƒฃ 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)