Skip to content

Conversation

@chadicus
Copy link
Contributor

What does this PR do?

This pull request adds the Strings::stripEmoji method which will strip emoji characters from a given string.

Checklist

  • Pull request contains a clear definition of changes
  • Tests (either unit, integration, or acceptance) written and passing
  • Relevant documentation produced and/or updated

@chadicus chadicus requested a review from a team as a code owner March 10, 2025 17:37
*
* @return string;
*/
public static function stripEmoji(string $value, string $replacement = '')
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing return typehint

Co-authored-by: philbti <141263723+philbti@users.noreply.github.com>
*/
public static function provideStripEmoji(): array
{
return [
Copy link
Contributor

Choose a reason for hiding this comment

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

should we do sanity checks if it strips multiple emojis properly in a message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah i can add that

chadicus and others added 2 commits March 10, 2025 14:25
Co-authored-by: philbti <141263723+philbti@users.noreply.github.com>
@chadicus chadicus merged commit 0703ed3 into traderinteractive:master Mar 10, 2025
6 checks passed
@chadicus chadicus deleted the strip-emoji branch March 10, 2025 18:49
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