phan v2.6.1 Release Notes

Release Date: 2020-03-13 // about 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)