Skip to content

Commit 6214338

Browse files
committed
Fix throwing errors when installed when config cache is active
1 parent 48ed85d commit 6214338

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Sentry/Laravel/ServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,9 @@ private function getIntegrations(): array
211211
*/
212212
private function getUserConfig(): array
213213
{
214-
return $this->app['config'][static::$abstract] ?? [];
214+
$config = $this->app['config'][static::$abstract];
215+
216+
return empty($config) ? [] : $config;
215217
}
216218

217219
/**

0 commit comments

Comments
 (0)