bugsnag / bugsnag-symfony

BugSnag notifier for the Symfony PHP framework. Monitor and report errors in your Symfony apps.
https://docs.bugsnag.com/platforms/php/symfony
MIT License
43 stars 21 forks source link

Attempted to call an undefined method named "getUsername" of class "App\Entity\User". #141

Closed tarasTrujay closed 2 years ago

tarasTrujay commented 2 years ago

Describe the bug

Attempted to call an undefined method named "getUsername" of class "App\Entity\User" on bugsnag/bugsnag-symfony v1.11.0 There cannot be getUsername() method because it was changed to getUserIdentifier() method in Symfony 5.3

Environment

Error:

Fatal error: Uncaught Error: Call to undefined method App\Entity\User::getUsername() in .../vendor/bugsnag/bugsnag-symfony/DependencyInjection/ClientFactory.php on line 392

xljones commented 2 years ago

Hi @tarasTrujay thanks for the bug report. We'll take a look into getting this fixed up.

tarasTrujay commented 2 years ago

Thanks, @xander-jones! Any ideas when this will be fixed?

xljones commented 2 years ago

👋 we plan to get this fixed up in the next few weeks, but we'll keep you posted with updates on this thread, and let you know when this fix is released.

luke-belton commented 2 years ago

Hi @tarasTrujay - just to let you know that a fix for this was released in v1.11.1 of bugsnag-symfony 🎉

tarasTrujay commented 2 years ago

Hi @luke-belton Thanks a lot