New features(CLI, Configs):
- Add
-X
as an alias of--dead-code-detection-prefer-false-positive
.
New features(Analysis):
- Emit
PhanTypeInvalidLeftOperandOfBitwiseOp
andPhanTypeInvalidRightOperandOfBitwiseOp
for argument types to bitwise operations other thanint|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