Skip to content

Commit f647dcf

Browse files
authored
Allow extending the Laravel specific config options (#557)
1 parent 3374da2 commit f647dcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Sentry/Laravel/ServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ServiceProvider extends BaseServiceProvider
2626
/**
2727
* List of configuration options that are Laravel specific and should not be sent to the base PHP SDK.
2828
*/
29-
private const LARAVEL_SPECIFIC_OPTIONS = [
29+
protected const LARAVEL_SPECIFIC_OPTIONS = [
3030
// We do not want these settings to hit the PHP SDK because they are Laravel specific and the PHP SDK will throw errors
3131
'tracing',
3232
'breadcrumbs',
@@ -143,7 +143,7 @@ protected function configureAndRegisterClient(): void
143143
$basePath = base_path();
144144
$userConfig = $this->getUserConfig();
145145

146-
foreach (self::LARAVEL_SPECIFIC_OPTIONS as $laravelSpecificOptionName) {
146+
foreach (static::LARAVEL_SPECIFIC_OPTIONS as $laravelSpecificOptionName) {
147147
unset($userConfig[$laravelSpecificOptionName]);
148148
}
149149

0 commit comments

Comments
 (0)