lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
427 stars 262 forks source link

Symfony 7.1 Compatibilty #459

Open JanCern opened 3 months ago

JanCern commented 3 months ago

Hello, the 7.1 version of this package has a conflict with doctrine/orm version 3.0. Is it possible to change this limit?

johanvio commented 3 weeks ago

@JanCern, I'm not completely sure what your issue is, but I may have the same problem with version 6.0 of lexik/LexikTranslationBundle and Symfony 6.4.

Here's what I get when I go to the route I configured for the bundle:

Compile Error: Declaration of Lexik\Bundle\TranslationBundle\Entity\TransUnitRepository::count(?array $locales = null, ?array $filters = null) must be compatible with Doctrine\ORM\EntityRepository::count(array $criteria = []): int

Maybe this change is causing the issue: https://github.com/doctrine/orm/blob/3.0.x/UPGRADE.md#bc-break-entityrepositorycount-signature-change

But I'm not sure, since the signature of TransUnitRepository::count() seems to differ a lot from EntityRepository::count(). Maybe the php version is relevant as well; I'm using php 8.3.