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.5.0 #205714

Closed
wants to merge 1 commit into from
Closed

mago 0.5.0 #205714

wants to merge 1 commit into from

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
## 🚀 New Features  

Enhanced Linting Targets

Run linting on specific files/directories or file descriptors:

# Lint single file
mago lint example.php

# Lint multiple files/directories
mago lint src/ tests/ example.php

# Lint via process substitution (Unix-like systems)
mago lint <(echo '<?php while(true) { break; }')

Type Checking Flexibility

Added ignore_closure_types option to skip parameter/return type checks for:

  • Arrow functions
  • Closures

For more information, use mago lint --explain strictness/require-parameter-type and mago lint --explain strictness/require-return-type

🐞 Bug Fixes

Critical Rule Fixes:

  • Fixed best-practices/loop-does-not-iterate to detect loops with unconditional continue (Resolves #55)
  • Fixed filtering behavior when using MAGO_LOG environment variable

Compatibility Improvements:

  • Made Composer plugin fully compatible with PHP 8.1 environments

🔧 Improvements

Diagnostics & Logging:

  • Revamped logging messages for clearer debugging sessions

⚙️ Internal Changes

  • Updated default Composer configuration templates
  • Optimized rule initialization sequence

What's Changed


Full Changelog: carthage-software/mago@0.4.1...0.5.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 Jan 27, 2025
@chenrui333 chenrui333 added CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. test failure CI fails while running the test-do block labels Jan 27, 2025
@chenrui333
Copy link
Member

  ==> /opt/homebrew/Cellar/mago/0.5.0/bin/mago --version
  ERROR Failed to build the configuration: missing field `log`
  
  Error: mago: failed
  An exception occurred within a child process:
    Minitest::Assertion: Expected: 0
    Actual: 1

@chenrui333
Copy link
Member

#205729

@chenrui333 chenrui333 closed this Jan 28, 2025
@chenrui333 chenrui333 added the superseded PR was replaced by another PR label Jan 28, 2025
@chenrui333 chenrui333 deleted the bump-mago-0.5.0 branch January 28, 2025 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. rust Rust use is a significant feature of the PR or issue superseded PR was replaced by another PR test failure CI fails while running the test-do block
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants