09 Mar 2019, Phan 1.2.6
New features (CLI,Configs)
enable_extended_internal_return_type_plugins
to more aggressively
infer literal values for functions such as json_decode
, strtolower
, implode
, etc. (disabled by default),--dead-code-detection
load UnreachableCodePlugin
if that plugin isn't already loaded (#1824)--automatic-fix
to fix any issues Phan is capable of fixing
(currently a prototype. Fixes are guessed based on line numbers).
This is currently limited to:--dead-code-detection
).WhitespacePlugin
(#2523)NotFullyQualifiedUsagePlugin
)
(will do the wrong thing for functions that are both global and in the same namespace)New features (Analysis):
PHP_EOF
.
These depend on the PHP binary used to run Phan. In most cases, that shouldn't matter.PhanPluginPrintfVariableFormatString
in PrintfCheckerPlugin
if the inferred format string isn't a single literal (#2431)PhanWriteOnlyPrivateProperty
with dead code detection when at least one assignment is by reference (#1658)@suppress issue-name
annotations (and @phan-suppress-next-line issue-name
, etc.) (#2515)
Note that CamelCase issue names are conventional for Phan and its plugins.PhanCompatibleAutoload
when using function __autoload() {}
instead of spl_autoload_register() {}
(#2528)null
when accessing array offsets that don't exist. (#2541)array_map
when the closure has a dependent return type. (#2554)PhanNoopArrayAccess
when an array field is fetched but not used (#2538)Language Server/Daemon mode:
Maintenance
Plugins:
PhanSelfCheckPlugin
for self-analysis of Phan and plugins for Phan. (#1576)
This warns if too many/too few arguments are provided for the issue template when emitting an issue.AutomaticFixCapability
for plugins to provide fixes for issues for --automatic-fix
(#2549)UnknownElementTypePlugin
(#2543)Bug fixes:
--ignore-undeclared
failed to properly ignore undeclared elements since 1.2.3 (#2502)PhanTypeInvalidDimOffset
for functions nested within other functions.?(A|B|C)
(#2551)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-2019-2d87433ac7
Please login to add feedback.
This update has been submitted for testing by remi.
This update has been pushed to testing.
This update has reached 3 days in testing and can be pushed to stable now if the maintainer wishes
This update has been submitted for batched by remi.
This update has been submitted for stable by bodhi.
This update has been pushed to stable.