packagist phan/phan 2.6.1
Release 2.6.1 supporting PHP 7.0-7.4 syntax

latest releases: v5.x-dev, dev-fix-4782, dev-MapReal-php81-82...
4 years ago

New features(CLI, Configs):

  • Add a --dump-ctags=basic flag to dump a tags file in the project root directory. (https://linux.die.net/man/1/ctags)
    This is different from tool/make_ctags_for_phan_project - --dump-ctags=basic has no external dependencies.

New features(Analysis):

  • Infer that the real type set of the key in foreach ($arrayVar as $key => ...) is definitely an int|string
    in places where Phan previously inferred the empty union type, improving redundant condition detection. (#3789)

Bug fixes:

  • Fix a crash in phan --dead-code-detection when a trait defines a real method and phpdoc @method of the same name (#3796)

Miscellaneous:

  • Also allow netresearch/jsonmapper@^2.0 as a dependency when enforcing the minimum allowed version (#3801)

Don't miss a new phan release

NewReleases is sending notifications on new releases.