Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle brackets other than string correctly when "]" is typed #6706 #6720

Conversation

junichi11
Copy link
Member

…6706

- apache#6706
- We can get "[" as PHP_ENCAPSED_AND_WHITESPACE token e.g. `$x = "[$y example]";`
- So, check also token ids
- Add unit tests
@junichi11 junichi11 added the PHP [ci] enable extra PHP tests (php/php.editor) label Nov 18, 2023
@junichi11 junichi11 added this to the NB21 milestone Nov 18, 2023
@tmysik
Copy link
Member

tmysik commented Nov 18, 2023

@junichi11 Thanks!

@junichi11 junichi11 merged commit 58f611c into apache:php-nb21-features Nov 18, 2023
34 checks passed
@junichi11 junichi11 deleted the php-gh-6706-typing-closing-bracket branch November 18, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PHP [ci] enable extra PHP tests (php/php.editor)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Insert closing brackets automatically" doesn't handle closing square bracket "]" correctly
2 participants