Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mago 0.11.0 #208462

Closed
wants to merge 1 commit into from
Closed

mago 0.11.0 #208462

wants to merge 1 commit into from

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
# Mago v0.11.0 Release Notes

✨ New Features

  • New Linter Rules
    Added several best-practice and analysis rules to improve code quality:

    • best-practices/no-else-clause: Discourages the use else clause in an if statement.
    • best-practices/no-boolean-flag-parameter: Flags boolean parameters that reduce readability.
    • best-practices/no-boolean-literal-comparison: Detects redundant boolean comparisons.
    • best-practices/no-empty-catch-clause: Warns about empty catch blocks.
    • best-practices/dont-catch-error: Warns against catching PHP's internal Error throwable.
    • redundancy/redundant-file: Identifies empty or redundant files.
    • redundancy/redundant-mathematical-operation: Finds unnecessary math operations.
    • analysis/override-attribute: Enforces use of #[\Override] for overridden methods (with auto-fix support).
    • maintainability/long-inheritance-chain: Warns against deep inheritance hierarchies.
    • analysis/parameter-name: Flag parameter name change in overriden methods.
  • Linter Enhancements

    • Added scope tracking to lint context for more accurate analysis.
    • Improved reflection handling for interfaces and tests.

🐛 Bug Fixes

  • Parser & Reflection Fixes

    • Fixed parsing of expression string parts.
    • Corrected method reflection to use lowercase names consistently.
    • Resolved interface reflection issues.
  • Static Call Handling

    • Allowed static calls to constructors and non-static methods within the same class or child classes.
  • CLI Fixes

    • Fixed broken mago fix command functionality.

📚 Documentation

🔧 Internal Changes

  • Serialization Cleanup
    Removed serialization logic from interner and project crates.

  • Source Management
    Stub source names now prefixed with @ for clearer identification.

🚨 Breaking Changes

  • Rust Edition Update
    Migrated from Rust 2021 to Rust 2024 edition. Ensure your toolchain is compatible.

  • Minimum Supported Rust Version (MSRV)
    Updated MSRV to 1.85.0. Older Rust versions are no longer supported.


Enjoy the updates! 🚀


Full Changelog: carthage-software/mago@0.10.0...0.11.0

@github-actions github-actions bot added rust Rust use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Feb 21, 2025
@daeho-ro
Copy link
Member

@daeho-ro
Copy link
Member

Superseded by

@daeho-ro daeho-ro closed this Feb 22, 2025
@github-actions github-actions bot deleted the bump-mago-0.11.0 branch February 22, 2025 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bump-formula-pr PR was created using `brew bump-formula-pr` rust Rust use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants