Skip to content

fix: hide assignment target during RHS completion - #873

Draft
Vamsi-2581 wants to merge 1 commit into
Firehed:mainfrom
Vamsi-2581:codex/assignment-target-completion-872
Draft

Vamsi-2581 wants to merge 1 commit into
Firehed:mainfrom
Vamsi-2581:codex/assignment-target-completion-872

Conversation

@Vamsi-2581

Copy link
Copy Markdown

PHP variable completion should not offer an assignment target while its right-hand expression is being typed. The parser reports inclusive end positions, while LSP cursors sit between characters; at the final token boundary the target was incorrectly treated as already bound. This adjusts that boundary and promotes the existing end-to-end defect case into the passing script suite. Closes #872.

I used OpenAI Codex to prepare the change. I could not run composer test locally because PHP and Composer are unavailable in this environment; hosted checks should validate the patch.

🤖 Generated with Codex

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.

Completion must not offer a variable while its own assignment is being typed

1 participant