8000 Release Release 5.4.5 supporting PHP 7.0-8.2 syntax ยท phan/phan ยท GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Release 5.4.5 supporting PHP 7.0-8.2 syntax

Compare
Choose a tag to compare
@dasl- dasl- released this 13 Aug 21:47
· 264 commits to v5 since this release
2b15302

New features(Analysis):

  • Emit PhanDeprecatedImplicitNullableParam for uses of implicitly nullable parameters (int $x = null instead of ?int $x = null). These can be fixed automatically via the accompanying IssueFixer. #4875

New features(CLI, Configs):

  • Add override_return_types to add types to all return types. Normally, Phan only adds inferred returned types when there is no @return type
    or real return type signature. This setting can be disabled on individual methods by adding
    @phan-hardcode-return-type to the doc comment.

    Disabled by default. This is more useful with --analyze-twice and in conjunction with PhoundPlugin to
    detect more callsite possibilities. See the PR description where
    this setting was added for more details.

    (Default: false)

    Along with this change, we are analyzing the return types of traits a bit more aggressively now. #4874

Bug fixes:

  • Fix crash in PHP 8.4 due to deprecation warning about implicitly nullable parameters #4875

Maintenance:

  • Update download links for php-ast zip files #4876
0