Nov 13 2021, Phan 5.3.0
New Features(Analysis):
try block unconditionally returns/throws/exits (#4419)getIterator returns an Iterator that includes a template. (#4556)PhanTypeMismatchArgumentNullable analyzing recursive call with parameter set to literal, without real type information. (#4550)
(e.g. function ($retry = true) { if ($retry) {/*...*/} some_call_using_retry($retry); })PhanUnusedVariable in try-catch where catch always rethrows. (#4567)+=, ??=) and increment/decrement operations. (#4570)PhanParamTooFewUnpack and PhanParamTooFewInternalUnpack to indicate when argument unpacking may provide too few arguments to the called function. (#4577)@no-named-arguments PHPDoc comment on function-likes. (#4580, #4152)
Treat variadic parameters as list types when this annotation is used,
warn about unpacking string arguments or explicitly passing named arguments to functions using this declaration.var_dump(...['a' => 'unsupported'])) (#4579)
New issue types: PhanSuspiciousNamedArgumentVariadicInternalUnpack@phan-type AliasName=UnionType annotation in inline strings or element comments (#4562). These aliases will apply to remaining statements in the current top-level namespace blocks, similar to use statements, but can also be defined in methods and apply to subsequent methods.Plugins:
EmptyStatementListPlugin (#4555)AlwaysReturnPlugin about functions/methods with no return type that have at least one return statement with an expression, but may fall through to the end of the function body without an explicit return (#4587)Bug fixes:
count($arr) > 0 and count($arr) >= 1 that the array is non-empty. (#4551)/) on windows (#4149)$arr[true]) (#4573)--processes N CLI flag before checking if phan should restart without grpc (#4608)Maintenance:
Updates may require up to 24 hours to propagate to mirrors. If the following command doesn't work, please retry later:
sudo dnf upgrade --refresh --advisory=FEDORA-2021-edf7296261
Please log in to add feedback.
This update has been submitted for testing by remi.
This update's test gating status has been changed to 'ignored'.
This update has been pushed to testing.
This update has been submitted for stable by bodhi.
This update has been pushed to stable.