Skip to content

Commit 874f026

Browse files
committed
Add the versionadded directive
1 parent 5d80157 commit 874f026

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/string.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,7 @@ from GitHub or Slack, use the first argument of ``withEmoji()`` method::
552552
$slug = $slugger->slug('a 😺, 🐈‍⬛, and a 🦁');
553553
// $slug = 'a-smiley-cat-black-cat-and-a-lion';
554554

555-
If you want to strip emojis from a string, you can also use the special
556-
``strip`` locale::
555+
If you want to strip emojis from slugs, use the special ``strip`` locale::
557556

558557
use Symfony\Component\String\Slugger\AsciiSlugger;
559558

@@ -563,6 +562,10 @@ If you want to strip emojis from a string, you can also use the special
563562
$slug = $slugger->slug('a 😺, 🐈‍⬛, and a 🦁');
564563
// $slug = 'a-and-a';
565564

565+
.. versionadded:: 6.3
566+
567+
The option to strip emojis from slugs was introduced in Symfony 6.3.
568+
566569
.. _string-inflector:
567570

568571
Inflector

0 commit comments

Comments
 (0)