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

[PHP 8.0] Make AnnotationToAttributeRector return after 1st newline without slash #6578

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

TomasVotruba
Copy link
Member

No description provided.

@TomasVotruba TomasVotruba force-pushed the tv-behat-attribute-fixes-2 branch from 7d7421d to b742b2e Compare December 13, 2024 11:11
@TomasVotruba TomasVotruba enabled auto-merge (squash) December 13, 2024 11:11
@TomasVotruba TomasVotruba merged commit 2ff314c into main Dec 13, 2024
41 checks passed
@TomasVotruba TomasVotruba deleted the tv-behat-attribute-fixes-2 branch December 13, 2024 11:12
* @var string
* @see https://regex101.com/r/CL9ktz/1
*/
private const END_SLASH_REGEX = '#\\\\\r?$#';
Copy link
Member

Choose a reason for hiding this comment

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

\r? only without \n make match mac new line, if it needs not have new line after, it should restrict not followed by new line, eg: (!?\r?\n, I will check it.

Copy link
Member

Choose a reason for hiding this comment

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

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.

2 participants