Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
transChoice method is deprecated in Symfony 4.2 #1548
I encountered an issue with the following code:
Carbon version: 1.36
I expected to get:
But I actually get:
Error is from /app/vendor/nesbot/carbon/src/Carbon/Carbon.php:4233
Only started happening in the past 48 hours after doing a composer update on my laravel project.
I would do a pull request but I don't know the translation library well enough to know what exactly is happening here.
Let me know if you need any further information.
symfony/translation recently deprecated a method we use from it. And by default in Laravel any notice even deprecation will stop the process throwing an exception.
Symfony let us no choice, all existing version of Carbon are incompatible with symfony/translation 4.2, so we have to publish new version (1.37 and 2.8) using the new translation method.
Meanwhile, you can force downgrade symfony/translation:
composer require symfony/translation:~4.1
Hi @kylekatarnls I have been reading this, thanks for looking into this.
If i disable the error handling it no longer reports the issue.
I will open up a bug with Honeybadger. Apologies for opening this bug on here although the reporting of the error was originating from Carbon so this was pretty well hidden.