Download Latest Version Phan 6.0.2 source code.tar.gz (2.1 MB)
Email in envelope

Get an email when there's a new version of Phan

Home / 6.0.1
Name Modified Size InfoDownloads / Week
Parent folder
phan.phar.asc 2026-02-08 833 Bytes
phan.phar 2026-02-08 13.8 MB
Phan 6.0.1 source code.tar.gz 2026-02-08 2.1 MB
Phan 6.0.1 source code.zip 2026-02-08 2.5 MB
README.md 2026-02-08 978 Bytes
Totals: 5 Items   18.4 MB 0

New features:

  • Allow a & before the method name in @method annotations, to declare that the method returns by reference (#5430)
  • New PhanTypeComparisonObjectOrdering issue type to detect when ordering operators (<, <=, >, >=, <=>) are used to compare an object with a non-object value, which throws TypeError in PHP 8.0+

Bug fixes:

  • Fixed analysis of array_map with ternary expression as array argument (#5424)
  • Skip redundant/impossible condition detection on static properties (#5423)
  • Fixed value-of<T> and key-of<T> not evaluating to the expected types (#5421)
  • Fixed more inconsistencies in type inference for if statement vs ?: ternary expression (#5408)
  • Fixed templated subtypes of array not being treated as array-like (#5433)
  • Treat readonly classes as such when read from Reflection (#5436)

Miscellaneous:

  • Replace TysonAndre/var_representation_polyfill with the phan/ fork for PHP 8.5 support (#5420)
Source: README.md, updated 2026-02-08