Update sniff to fix more redundant parens uses#2894
Conversation
📝 WalkthroughWalkthroughThe PR enhances redundant parentheses detection in a PHPCS sniff by expanding token filtering with the Tokens utility, introducing new helper methods for function-call and ternary expression analysis, and extending support for additional logical operators and expression patterns. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This catches several more instances in Pro.
See https://github.com/Strategy11/formidable-pro/pull/6273
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.