You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While upgrading our application to PHP 8.4 and Symfony 7.2, I had to include the Symfony/Emoji library. But after including the library, I started getting this exception during our phpunit build:
Fatal error: Cannot redeclare readonly property Transliterator::$id as non-readonly Symfony\Component\Emoji\EmojiTransliterator::$id in /application/vendor/symfony/emoji/EmojiTransliterator.php on line 20
As far as I'm seeing, the library is correctly defining the $id property as readonly.
How to reproduce
Having a basic unit unit test where the kernel get's initialized should be enough since it already happens while building the container.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
brechtoptios
changed the title
Cannot redeclare readonly property Transliterator::$id as non-readonly EmojiTransliterator::$id
[Emoji] Cannot redeclare readonly property Transliterator::$id as non-readonly EmojiTransliterator::$id
Jun 3, 2025
Symfony version(s) affected
7.2.7
Description
While upgrading our application to PHP 8.4 and Symfony 7.2, I had to include the Symfony/Emoji library. But after including the library, I started getting this exception during our phpunit build:
As far as I'm seeing, the library is correctly defining the $id property as readonly.
How to reproduce
Having a basic unit unit test where the kernel get's initialized should be enough since it already happens while building the container.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: