Mago 0.4.0 introduces new features, Composer integration, and significant internal refactoring. Here's what's new:
π New Features
Compatibility Rule: arrow-functions-feature
The linter now includes the compatibility/arrow-functions-feature
rule, which detects the use of arrow functions introduced in PHP 7.4. This helps ensure your code remains compatible with earlier PHP versions if needed.
Learn more about the rule using:
mago lint --explain compatibility/arrow-functions-feature
π¦ Composer Package and Plugin
Mago can now be installed as a Composer package and plugin! This simplifies integration into PHP projects and allows you to manage Mago through Composer.
For more details, see the updated Installation Documentation.
β οΈ Internal Refactoring and BC Breaks
Significant internal refactoring has been done in the mago_ast
crate, affecting its API and other crates relying on it.
Breaking Changes:
If you are directly using the mago_ast
crate or any dependent crate, exercise caution when updating to 0.4.0, as there are backward-incompatible changes.
π€ New Contributors
Thank you for your continued support! Weβre excited to see how Mago helps you level up your PHP development workflow.
Full Changelog: 0.3.0...0.4.0