Mago 1.0.0-beta.20
This is a focused release that addresses several critical bugs in the linter, significantly improving its correctness and restoring a key auto-fix feature as we continue to stabilize for the first release candidate.
🐞 Linter Fixes
Duplicate Issue Reporting
A bug has been fixed where some linter rules (like no-request-all
) would run on nested code blocks, causing the same issue to be reported multiple times within a single function or method. The linter now correctly targets the top-level scope, ensuring that issues are reported only once.
strict-types
Rule Restored and Improved
A significant logic error in the strict-types
rule has been fixed. The rule was previously failing to report missing declare(strict_types=1);
statements in most cases.
More importantly, the auto-fix for this rule has been restored. After being removed during the linter rewrite, you can now once again automatically add the strict types declaration to your files by running:
mago lint --fix --unsafe
Full Changelog: 1.0.0-beta.19...1.0.0-beta.20