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)
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)