Skip to content

Fix crash on dynamic method calls#383

Merged
gcavanunez merged 1 commit into
mainfrom
gc/fix-dynamic-call-crash
Apr 29, 2026
Merged

Fix crash on dynamic method calls#383
gcavanunez merged 1 commit into
mainfrom
gc/fix-dynamic-call-crash

Conversation

@gcavanunez

@gcavanunez gcavanunez commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes crashing on dynamic method calls
  • Adds $node->name instanceof Node\Identifier guard before dereferencing ->name->name in affected rules

Notes

Based onto PR since previous tagged brought upon some small linting fixes

Closes #382

@loganhenson

Copy link
Copy Markdown
Contributor

Nice tests!

Base automatically changed from gc/update-duster to main April 29, 2026 15:33
@gcavanunez gcavanunez merged commit 250092a into main Apr 29, 2026
1 check passed
@gcavanunez gcavanunez deleted the gc/fix-dynamic-call-crash branch April 29, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linter rules crash on dynamic method calls: Undefined property PhpParser\Node\Expr\BinaryOp\Concat::$name

2 participants