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

Skip hexa chars in EncapsedStringsToSprintfRector #6719

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

TomasVotruba
Copy link
Member

No description provided.

@TomasVotruba TomasVotruba changed the title skip hexa chars in EncapsedStringsToSprintfRector Skip hexa chars in EncapsedStringsToSprintfRector Feb 5, 2025
@TomasVotruba TomasVotruba enabled auto-merge (squash) February 5, 2025 15:35
@TomasVotruba TomasVotruba merged commit 78382d2 into main Feb 5, 2025
44 checks passed
@TomasVotruba TomasVotruba deleted the tv-encapsed-hexa branch February 5, 2025 15:35
@@ -250,4 +264,9 @@ private function createString(string $value): String_
'kind' => $kind,
]);
}

private function containsASCIIChar(string $content): bool
Copy link
Contributor

@staabm staabm Feb 5, 2025

Choose a reason for hiding this comment

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

doesn't the return type do the inverse?

it returns true when nonASCII chars are contained, I think

Copy link
Member Author

Choose a reason for hiding this comment

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

Could be.

The \x01 in your string represents the ASCII control character with a hexadecimal value of 01.

Should be probably containsControlASCIIChar() 👍

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.

3 participants