Skip to content

fix asterisk indent#3031

Merged
TomasVotruba merged 1 commit intomasterfrom
array-code-indent
Mar 18, 2020
Merged

fix asterisk indent#3031
TomasVotruba merged 1 commit intomasterfrom
array-code-indent

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Mar 18, 2020

Ref #2743

Fixes

image

@TomasVotruba TomasVotruba merged commit 9a3afb2 into master Mar 18, 2020
@TomasVotruba TomasVotruba deleted the array-code-indent branch March 18, 2020 15:37
@TomasVotruba
Copy link
Copy Markdown
Member Author

Without asterisk, it's probably bug in phpdoc-parser, that resolve the last constant WHEN_UPDATE indent the same way as previous one. Which is incorrect.

image

If you change the doc with []['a'], it works correctly:

image


This is the best hot fix I could think of ATM

@TomasVotruba TomasVotruba restored the array-code-indent branch March 29, 2020 01:26
@TomasVotruba TomasVotruba deleted the array-code-indent branch March 29, 2020 01:27
@TomasVotruba TomasVotruba restored the array-code-indent branch March 29, 2020 01:27
@TomasVotruba TomasVotruba deleted the array-code-indent branch March 29, 2020 01:27
TomasVotruba added a commit that referenced this pull request Nov 2, 2022
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.

1 participant