Skip to content

Mago 1.42.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Jun 12:37
1.42.0
1e843d2

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:

Full Changelog: 1.41.0...1.42.0