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 usingType::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) - ๐ When adding a plugin overriding the return type of a method,