Skip to content

[String] Remove confusing paragraph about withEmoji('strip') #19323

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

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

smnandre
Copy link
Member

The AsciiSlugger does remove every emoji from a given string per default without any external component or package, as they are not... ASCII.

The paragraph added some confusion to the reader, implying that

  • AsciiSlugger did not work with emoji per default
  • the special locale + the Intl component was required

So i suggest to purely remove it.

@OskarStark OskarStark changed the title [String] Remove confusing paragraph about withEmoji('strip') [String] Remove confusing paragraph about withEmoji('strip') Dec 23, 2023
@OskarStark
Copy link
Contributor

But afterwards there is no mention about strip locale, isn't it?

I am for keeping it and change it to remove potentially confusion

@smnandre
Copy link
Member Author

If it's changed and moved outside the Slugger section i agree :)

Copy link
Member

@wouterj wouterj left a comment

Choose a reason for hiding this comment

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

We should move this paragraph+example to https://symfony.com/doc/current/components/intl.html#emoji-transliteration (on branch 6.3)

@javiereguiluz
Copy link
Member

Good catch, thanks Simon.

@javiereguiluz javiereguiluz merged commit e3c7ddc into symfony:7.0 Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants