Mago 1.42.0
A small release adding a prefer-early-return linter rule, fixing Windows self-update, and clearing analyzer and PHPDoc false positives around is_a(), nullable destructuring, and @param on promoted properties.
β¨ Features
Linter
- prefer-early-return: new rule suggesting early returns to reduce nesting in functions. (#2031, e523ab1)
π Bug Fixes
Analyzer
- is_a() with allow_string: a string subject no longer triggers a false impossible-type-comparison. (db64917)
- Nullable destructuring: destructuring T|null keeps element types (plus null) instead of widening to mixed. (643a037)
PHPDoc Syntax
- @param on promoted properties: @param T with no variable is allowed and types the property like @var. (8b9af32)
CLI
- Windows self-update: extracts the .exe-suffixed binary from the archive, fixing "file not found". (805a1c3)
π Thank You
Contributors
A huge thank you to everyone who contributed code to this release:
- @Bleksak: #2031
Full Changelog: 1.41.0...1.42.0