Mago is a comprehensive toolchain for PHP that helps developers write better code. Inspired by the Rust ecosystem, Mago brings speed, reliability, and an exceptional developer experience to PHP projects of all sizes.
What's new in 1.59.0
Mago 1.59.0 fixes analyzer narrowing across boolean guards, nullsafe checks, and elseif branches, improves generic and callable inference, and updates the analyzer extension protocol to MANA 2.2.
> [!NOTE] > > ### Support Mago > > Does your company use Mago? Please consider sponsoring its development so we can keep fixing bugs and shipping releases. > > Sponsor Mago ❤️
🐛 Bug Fixes
Analyzer
Namespace constants:preserves global constant fallback in namespaced declarations. (#2594, 0e6c1d8)
Method assertions:keeps getter assertions from the right side of ||. (#2600, #2609, 777429f)