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

Prevent duplicate class declaration warnings #178

Closed imjoehaines closed 2 months ago

imjoehaines commented 2 months ago

Goal

We've had a report of a duplicate class declaration warning coming from the create-configuration-class-alias.php file. I was unable to reproduce the issue but we can wrap the declaration in a class_exists check to ensure we only ever declare the class once