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

latest releases: v5.x-dev, dev-fix-4782, dev-MapReal-php81-82...
3 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

Don't miss a new phan release

NewReleases is sending notifications on new releases.