Carbon: Update of symfony/translation breaks Carbon

Hello,

I encountered an issue :

Class 'Symfony\Component\Translation\Loader\ArrayLoader' not found

in :

vendor/nesbot/carbon/src/Carbon/Translator.php:80

since the new version of Symfony/Translate (5.3.8).

Carbon version: 2.53.1

PHP version: 7.4.24

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 8
  • Comments: 21 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Hello guys, +1 and redundant messages help no one. Symfony declares a class from a file path where composer autoload can’t find it, the only thing we could do from our side would be to manually include() those files. => We won’t do that. you can do it on your project as a quick fix but I just recommend to require "symfony/translation": "^5.3.7 !=5.3.8" so you stay on 5.3.7 and will get 5.3.9 (which very likely will fix the regression as this is an obvious unintended breaking change from Symfony side).

There is nothing else to do that just not install this broken version of Symfony and this is not a Carbon bug, so nothing to wait from here, watch the Symfony issue instead: https://github.com/symfony/symfony/issues/43212

We’re waiting… =)

I just had the same issue, haha, I thought I was going crazy…

image

created a pull request #2467

That’s a very temporary fix. Looks like Symfony is on to a fix, this is not a Carbon bug. https://github.com/symfony/symfony/issues/43212#issuecomment-929029937

+1 Upgrading existing project and everything went 💥

Guys, read @kylekatarnls …!

New minor version of the symfony/translator package, which moved the namespace https://github.com/symfony/translation/releases/tag/v5.3.8

Yes fixed in symfony/translation 4.4.32 and 5.3.9.

Created a pull request #2467