github carthage-software/mago 0.20.0
Mago 0.20.0

latest releases: 1.0.0-beta.13, 1.0.0-beta.12, 1.0.0-beta.11...
6 months ago

Mago 0.20.0 🪄

We are excited to announce the release of 0.20.0, which brings significant enhancements to the formatter, along with several bug fixes and improvements to the linter and project functionalities.

✨ New Features

  • Extensive Spacing Control Options:
    • This release introduces over 60 new configuration options for fine-grained control over spacing within your PHP code. Users can now customize spacing around parentheses in control structures, function declarations, calls, lists, arrays, unary and binary operators, colons, semicolons, nullable and intersection type hints, and more.
    • These options allow for precise adjustments to spacing, enabling users to adhere to specific style guides or personal preferences, significantly improving code readability.
  • Empty Line Control Options:
    • New configuration options have been added to control the insertion of empty lines after various language constructs. This includes options for control structures (if, for, foreach, while, do, switch), opening tags, declare statements, namespaces, use statements, symbols (classes, enums, interfaces, traits, functions, constants), class-like constants, enum cases, trait uses, properties, methods, return statements, and dangling comments.
    • These options provide greater control over vertical spacing, enhancing code readability and customization.

🛠️ Bug Fixes

  • Linter:
    • Corrected the logic for locating applicable pragmas for nodes, resolving issue #142.
    • Fixed a false-positive issue with unused parameter detection, resolving issue #148.
    • Disabled the best-practices/no-boolean-literal-comparison rule by default, addressing issue #129.
    • Enabled all linter rules with error level during tests.
  • Project:
    • Fixed the auto-implementation of the Stringable interface.

We encourage users to update to 0.20.0 to take advantage of these new features and improvements. Thank you for your continued support!


Full Changelog: 0.19.5...0.20.0

Don't miss a new mago release

NewReleases is sending notifications on new releases.