github phan/phan 5.4.5
Release 5.4.5 supporting PHP 7.0-8.2 syntax

3 months ago

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

Don't miss a new phan release

NewReleases is sending notifications on new releases.