Content-Length: 254760 | pFad | http://github.com/symfony/symfony/issues/60653

AA [Emoji] Cannot redeclare readonly property Transliterator::$id as non-readonly EmojiTransliterator::$id · Issue #60653 · symfony/symfony · GitHub
Skip to content

[Emoji] Cannot redeclare readonly property Transliterator::$id as non-readonly EmojiTransliterator::$id #60653

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

Open
brechtoptios opened this issue Jun 3, 2025 · 3 comments

Comments

@brechtoptios
Copy link

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:

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

@brechtoptios 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
@xabbuh
Copy link
Member

xabbuh commented Jun 3, 2025

Are you sure that this is happening with PHP 8.4? Looking at https://3v4l.org/hl4gE it seems that this is an error that is raised on PHP 8.1.

@brechtoptios
Copy link
Author

brechtoptios commented Jun 3, 2025

Yes, very sure I'm using and running the tests under 8.4.

Image

@xabbuh
Copy link
Member

xabbuh commented Jun 3, 2025

Can you create and share a small project (probably using Docker) that allows to reproduce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/symfony/symfony/issues/60653

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy