Skip to content

fix(analyzer): report mixed-operand for unary operators#1636

Merged
azjezz merged 1 commit intocarthage-software:mainfrom
edsrzf:mixed-operand-increment
Apr 14, 2026
Merged

fix(analyzer): report mixed-operand for unary operators#1636
azjezz merged 1 commit intocarthage-software:mainfrom
edsrzf:mixed-operand-increment

Conversation

@edsrzf
Copy link
Copy Markdown
Contributor

@edsrzf edsrzf commented Apr 14, 2026

📌 What Does This PR Do?

This fixes issues reported for unary operators ++, --, and - so that they're consistently mixed-operand rather than invalid-operand or possibly-invalid-operand.

🔍 Context & Motivation

closes #1635

🛠️ Summary of Changes

  • Bug Fix: Fixed issue type reported for unary operators on mixed operands to mixed-operand.

📂 Affected Areas

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

🔗 Related Issues or PRs

#1635

📝 Notes for Reviewers

Claude Code was used to help author this change, but I've reviewed it and have a thorough understanding of how it works.

@azjezz azjezz added c-analyzer PHP static analyzer and type error detection t-bug Something isn't working labels Apr 14, 2026
@azjezz azjezz changed the title [analyzer] Report mixed-operand for unary operators fix(analyzer): report mixed-operand for unary operators Apr 14, 2026
@azjezz azjezz merged commit 76cc5f5 into carthage-software:main Apr 14, 2026
7 checks passed
@edsrzf edsrzf deleted the mixed-operand-increment branch April 14, 2026 23:41
harutyundr pushed a commit to harutyundr/mago that referenced this pull request Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-analyzer PHP static analyzer and type error detection t-bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[analyzer] Report mixed-operand instead of invalid-operand for increment/decrement

2 participants