Skip to content

[DowngradePhp80] Add DowngradeInlinedAttributeRector#37

Closed
samsonasik wants to merge 3 commits intomainfrom
add-downgrade-inlined-attribute
Closed

[DowngradePhp80] Add DowngradeInlinedAttributeRector#37
samsonasik wants to merge 3 commits intomainfrom
add-downgrade-inlined-attribute

Conversation

@samsonasik
Copy link
Copy Markdown
Member

This is alternative of PR:

which it re-print the node when it has same line, so attribute will still usefull when user use in php8+

@samsonasik samsonasik marked this pull request as draft January 18, 2023 11:37
@samsonasik
Copy link
Copy Markdown
Member Author

It seems line detection is always same whether it multilne or no not, possibly need token check.

@samsonasik
Copy link
Copy Markdown
Member Author

@TomasVotruba it seems for JetBrain Language attribute, it originallly multiline, see PR:

, and the php-scoper make it single lined, so there is nothing we can do except just convert it to annotation like in PR:

@samsonasik samsonasik closed this Jan 18, 2023
@samsonasik samsonasik deleted the add-downgrade-inlined-attribute branch January 18, 2023 11:51
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