Skip to content

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
]);
}

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.

@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants