Skip to content

Converting string to heredoc and back#2825

Merged
dantleech merged 2 commits intophpactor:masterfrom
mamazu:here_doc
Jan 27, 2025
Merged

Converting string to heredoc and back#2825
dantleech merged 2 commits intophpactor:masterfrom
mamazu:here_doc

Conversation

@mamazu
Copy link
Copy Markdown
Contributor

@mamazu mamazu commented Jan 14, 2025

This code action can refactor strings to here docs and the other way around.

The String parsing in the tolerant parser is really weird though, whitespaces are parts of the tokens.

@dantleech
Copy link
Copy Markdown
Collaborator

look fine, just a minor comments.

@dantleech dantleech merged commit fcebf6f into phpactor:master Jan 27, 2025
@dantleech
Copy link
Copy Markdown
Collaborator

thanks

@przepompownia
Copy link
Copy Markdown
Contributor

This just happens to coincide with my need to use it in many cases in some project :)

@mamazu mamazu deleted the here_doc branch January 28, 2025 23:05
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.

3 participants