Sep 13 2020, Phan 3.2.1

New features (Analysis):

  • Don't compare parameter types against alternate method signatures which have too many required parameters. (e.g. warn about max([]) but not max([], [1]))
  • Support /** @unused-param $param_name */ in doc comments as an additional way to support suppressing warnings about individual parameters being unused.
  • Warn about loop conditions that potentially don't change due to the body of the loop. This check uses heuristics and is prone to false positives. New issue types: PhanPossiblyInfiniteLoop
  • Treat unset($x); as shadowing variable definitions during dead code detection.
  • Change the way $i++, --$i, etc. are analyzed during dead code detection
  • Properly enable allow_method_param_type_widening by default when the inferred minimum_target_php_version is '7.2' or newer. (#4168)
  • Start preparing for switching to AST version 80 in an upcoming Phan 4 release. (#4167)`

Bug fixes:

  • Fix various crashes in edge cases.
  • Fix crash with adjacent named labels for gotos.
  • Fix false positive unused parameter warning with php 8.0 constructor property promotion.

Plugins:

  • Warn about # comments in PHPDocInWrongCommentPlugin if they're not used for the expected #[ syntax of php 8.0 attributes.

Maintenance:

  • Update polyfill/fallback parser to properly skip attributes in php 8.0. The upcoming Phan 4 release will support analyzing attributes, which requires AST version 80.

This update has been submitted for testing by remi.

2 years ago

This update's test gating status has been changed to 'ignored'.

2 years ago

This update's test gating status has been changed to 'waiting'.

2 years ago

This update's test gating status has been changed to 'ignored'.

2 years ago

This update has been pushed to testing.

2 years ago

This update can be pushed to stable now if the maintainer wishes

2 years ago

This update has been submitted for stable by bodhi.

2 years ago

This update has been unpushed.


Please login to add feedback.

Metadata
Type
unspecified
Karma
0
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
3
Stable by Time
3 days
Dates
submitted
2 years ago
in testing
2 years ago

Automated Test Results