phan v3.0.5 Release Notes

Release Date: 2020-07-03 // almost 4 years ago
  • ๐Ÿ†• New features(CLI, Configs):

    • โž• Add -X as an alias of --dead-code-detection-prefer-false-positive.

    ๐Ÿ†• New features(Analysis):

    • Emit PhanTypeInvalidLeftOperandOfBitwiseOp and PhanTypeInvalidRightOperandOfBitwiseOp for argument types to bitwise operations other than int|string.
      (affects ^, |, &, ^=, |=, &=)

    ๐Ÿ› Bug fixes:

    • ๐Ÿ›  Fix false positives in php 8.0+ type checking against the real mixed type. (#3994)
    • ๐Ÿ›  Fix unintentionally enabling GC when the pcntl extension is not enabled. (#4000)
      It should only be enabled when running in daemon mode or as a language server.

    Announcements

    ๐Ÿง Phan has a new minimal docker image (30MB total) based on Alpine Linux and PHP 7.4. See https://github.com/phan/docker