Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed as not planned
@brechtoptios

Description

@brechtoptios

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions