Skip to content

Deprecate resolveNextNode() to work only in current node tree context#4455

Merged
TomasVotruba merged 2 commits intomainfrom
tv-less-find-previous-5
Jul 9, 2023
Merged

Deprecate resolveNextNode() to work only in current node tree context#4455
TomasVotruba merged 2 commits intomainfrom
tv-less-find-previous-5

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Jul 9, 2023

No description provided.

@TomasVotruba TomasVotruba changed the title tv less find previous 5 Deprecate resolveNextNode() to work only in current node tree context Jul 9, 2023
if ($node instanceof Variable) {
$concat->right->value .= '.';
}
$concat->right->value .= '.';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on original solution, it using Token based check, I will update it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I wonder why no test is failing here though 🤔

Let's go with current version in this PR untill we find the breaking code, so we have it covered in test fixture for sure.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it definitelly breaking change, as we limit to variable on purpose to avoid next is func call, but let's see how large it break

@TomasVotruba TomasVotruba merged commit ed6f2b6 into main Jul 9, 2023
@TomasVotruba TomasVotruba deleted the tv-less-find-previous-5 branch July 9, 2023 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants