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()withallow_string: a string subject no longer triggers a falseimpossible-type-comparison. (db64917)- Nullable destructuring: destructuring
T|nullkeeps element types (plus null) instead of widening tomixed. (643a037)
PHPDoc Syntax
@paramon promoted properties:@param Twith 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:
Full Changelog: 1.41.0...1.42.0