Skip to content

feat(linter): Add a fixer for redundant parentheses#1549

Merged
azjezz merged 1 commit intocarthage-software:mainfrom
dotdash:feat_linter_add_a_fixer_for_redundant_parentheses
Mar 31, 2026
Merged

feat(linter): Add a fixer for redundant parentheses#1549
azjezz merged 1 commit intocarthage-software:mainfrom
dotdash:feat_linter_add_a_fixer_for_redundant_parentheses

Conversation

@dotdash
Copy link
Copy Markdown
Contributor

@dotdash dotdash commented Mar 31, 2026

📌 What Does This PR Do?

Add a fixer to remove redundant parentheses, for those of us without the luxurious option to use the mago formatter.

🔍 Context & Motivation

Can't use the formatter yet, but still want to use the no-redundant-parentheses rules, and am too lazy to remove them manually.

🛠️ Summary of Changes

  • Feature: Add a fixer for linter rule no-redundant-parentheses.
  • Bug Fix: Fixed incorrect handling of readonly properties in PHP 8.2.
  • Refactor: Improved mago_ast structure.
  • Docs: Updated installation guide.

📂 Affected Areas

  • Linter
  • Formatter
  • CLI
  • Dependencies
  • Documentation
  • Other (please specify):

🔗 Related Issues or PRs

none

📝 Notes for Reviewers

(((((((((((((((((((((((((did it)))))))))))))))))))))))))))

@azjezz azjezz added c-linter PHP linting for errors, style, and bugs t-enhancement New feature or request labels Mar 31, 2026
@azjezz azjezz merged commit 549678f into carthage-software:main Mar 31, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-linter PHP linting for errors, style, and bugs t-enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants