Sep 14 2021, Phan 5.2.1
New Features:
if ($x === []) {...} else {...}, if (count($x) > 0) {...} else {...}, etc.PhanTypeNonVarPassByRef to critical. It throws an Error in php 8.0+. (#3830)in_array($var, $array, true) that $array is a non-empty array and that $var is of a type found in the elements of $array. (#2511)Plugins:
InvokePHPNativeSyntaxCheckPlugin is passed a path to a php binary that is missing or invalid (or if the syntax check crashed). (#4116)
Previously, Phan would crash with an error such as fwrite(): write of 8196 bytes failed with errno=32 Broken pipePhanPluginMoreSpecificActualReturnType for phpdoc array shape return type and returned generic array. (#4531)Bug fixes:
PhanUnreferencedClosure/PhanUnreferencedFunction seen when a closure/function name was passed to a function such as uasort that already had a plugin analyzing calls of the closure. (#4090, #4519)PhanTypeMissingReturn* instances. (#4537). The check was wrong and should have been checking for a statement list that throws/exits. Return statements can be omitted if a function unconditionally exits. Also, check for the real never return type when emitting issuesPhanPossiblyUndefinedGlobalVariable* instance when global $var is used within a conditional. (#4539)PhanPluginRedundantAssignmentInLoop instance when a variable is modified in a catch statement with a break/continue. (#4542)non-empty-array&array<'a'|'b'> (#4544)Maintenance:
get_headers (#3273)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-ee15794329
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's test gating status has been changed to 'waiting'.
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.