Skip to content

Cannot extend final class Translator #500

@jonasdekeukelaere

Description

@jonasdekeukelaere

I wanted to implement this bundle in my Symfony 8.0 (PHP 8.5). But I've stumbled on the following error:

PHP Fatal error:  Class Lexik\Bundle\TranslationBundle\Translation\Translator cannot extend final class Symfony\Bundle\FrameworkBundle\Translation\Translator in vendor/lexik/translation-bundle/Translation/Translator.php on line 18

I've seen the PR for Symfony 8 implementation #494, but this seems to not address the fact that Symfony Translator class is final. The Lexik Translator class still extends that final class: https://github.com/lexik/LexikTranslationBundle/blob/master/Translation/Translator.php#L18

Is there a configuration step I forgot? Or something that I need to activate so it works for Symfony 8?

  • Symfony: v8.0.5
  • PHP: v8.5.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions