Skip to content

Commit

Permalink
Allow extending the Laravel specific config options (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
aand18 authored Jun 18, 2022
1 parent 3374da2 commit f647dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sentry/Laravel/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ServiceProvider extends BaseServiceProvider
/**
* List of configuration options that are Laravel specific and should not be sent to the base PHP SDK.
*/
private const LARAVEL_SPECIFIC_OPTIONS = [
protected const LARAVEL_SPECIFIC_OPTIONS = [
// We do not want these settings to hit the PHP SDK because they are Laravel specific and the PHP SDK will throw errors
'tracing',
'breadcrumbs',
Expand Down Expand Up @@ -143,7 +143,7 @@ protected function configureAndRegisterClient(): void
$basePath = base_path();
$userConfig = $this->getUserConfig();

foreach (self::LARAVEL_SPECIFIC_OPTIONS as $laravelSpecificOptionName) {
foreach (static::LARAVEL_SPECIFIC_OPTIONS as $laravelSpecificOptionName) {
unset($userConfig[$laravelSpecificOptionName]);
}

Expand Down

0 comments on commit f647dcf

Please sign in to comment.