The Phan 3.x release line uses php-ast
's AST version 70 and supports the analysis of all PHP 8.0 syntax except attributes (when run with PHP 8).
The planned 4.x release line will use AST version 80 and require php-ast
1.0.10+ in order to parse/analyze PHP 8.0's #[]
attributes
Bug fixes:
- Fix a few parameter names for issue messages (#4316)
- Fix bug that could cause Phan not to warn about
SomeClassWithoutConstruct::__construct
in some edge cases. (#4323) - Properly infer
self
is referring to the current object context even when the object context is unknown in namespaces. (#4070)
Deprecations:
- Emit a deprecation notice when running this in PHP 7 and php-ast < 1.0.7. (#4189)
This can be suppressed by setting the environment variablePHAN_SUPPRESS_AST_DEPRECATION=1
.