From ebfd7a88c40b6289309625dd84e2182f6fbfaffb Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 30 Jun 2025 18:56:05 +0200 Subject: [PATCH] [Intl] Remove deprecated `EmojiTransliterator` --- UPGRADE-8.0.md | 5 +++ src/Symfony/Component/Intl/CHANGELOG.md | 5 +++ .../Transliterator/EmojiTransliterator.php | 31 ------------------- src/Symfony/Component/Intl/composer.json | 3 +- 4 files changed, 11 insertions(+), 33 deletions(-) delete mode 100644 src/Symfony/Component/Intl/Transliterator/EmojiTransliterator.php diff --git a/UPGRADE-8.0.md b/UPGRADE-8.0.md index 0cc7a51882305..55bc81c172e2f 100644 --- a/UPGRADE-8.0.md +++ b/UPGRADE-8.0.md @@ -208,6 +208,11 @@ HttpKernel * Remove `Kernel::getAnnotatedClassesToCompile()` and `Kernel::setAnnotatedClassCache()` * Make `ServicesResetter` class `final` +Intl +---- + + * Remove `Symfony\Component\Intl\Transliterator\EmojiTransliterator`, use `Symfony\Component\Emoji\EmojiTransliterator` instead + Ldap ---- diff --git a/src/Symfony/Component/Intl/CHANGELOG.md b/src/Symfony/Component/Intl/CHANGELOG.md index ed7abd49647ea..7455aa507a7fd 100644 --- a/src/Symfony/Component/Intl/CHANGELOG.md +++ b/src/Symfony/Component/Intl/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +8.0 +--- + + * Remove `Symfony\Component\Intl\Transliterator\EmojiTransliterator`, use `Symfony\Component\Emoji\EmojiTransliterator` instead + 7.1 --- diff --git a/src/Symfony/Component/Intl/Transliterator/EmojiTransliterator.php b/src/Symfony/Component/Intl/Transliterator/EmojiTransliterator.php deleted file mode 100644 index b008c06d1d7db..0000000000000 --- a/src/Symfony/Component/Intl/Transliterator/EmojiTransliterator.php +++ /dev/null @@ -1,31 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Symfony\Component\Intl\Transliterator; - -use Symfony\Component\Emoji\EmojiTransliterator as EmojiEmojiTransliterator; - -trigger_deprecation('symfony/intl', '7.1', 'The "%s" class is deprecated, use "%s" instead.', EmojiTransliterator::class, EmojiEmojiTransliterator::class); - -if (!class_exists(EmojiEmojiTransliterator::class)) { - throw new \LogicException(\sprintf('You cannot use the "%s" if the Emoji component is not available. Try running "composer require symfony/emoji".', EmojiEmojiTransliterator::class)); -} - -class_alias(EmojiEmojiTransliterator::class, EmojiTransliterator::class); - -if (false) { - /** - * @deprecated since Symfony 7.1, use Symfony\Component\Emoji\EmojiTransliterator instead - */ - class EmojiTransliterator extends \Transliterator - { - } -} diff --git a/src/Symfony/Component/Intl/composer.json b/src/Symfony/Component/Intl/composer.json index f437753fe01f9..ad7625a5dd89e 100644 --- a/src/Symfony/Component/Intl/composer.json +++ b/src/Symfony/Component/Intl/composer.json @@ -24,8 +24,7 @@ } ], "require": { - "php": ">=8.4", - "symfony/deprecation-contracts": "^2.5|^3" + "php": ">=8.4" }, "require-dev": { "symfony/filesystem": "^7.4|^8.0", pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy