bugsnag / bugsnag-php

BugSnag error monitoring and crash reporting tool for PHP apps
https://docs.bugsnag.com/platforms/php
MIT License
554 stars 77 forks source link

Add `Report::getFeatureFlags` to allow accessing feature flags in callbacks #653

Closed imjoehaines closed 2 years ago

imjoehaines commented 2 years ago

Add Report::getFeatureFlags to allow accessing feature flags in callbacks. This returns a list of FeatureFlag instances (the same class used in addFeatureFlags)

I've changed the return value of FeatureFlagDelegate::toArray to the raw array of feature flags to support this. The Report::toArray now handles formatting the list of feature flags for the Event API