@@ -37,7 +37,7 @@ class ServiceProvider extends BaseServiceProvider
3737 */
3838 public function boot (): void
3939 {
40- $ this ->app ->make (static :: $ abstract );
40+ $ this ->app ->make (HubInterface::class );
4141
4242 if ($ this ->hasDsnSet ()) {
4343 $ this ->bindEvents ($ this ->app );
@@ -71,7 +71,7 @@ public function boot(): void
7171 public function register (): void
7272 {
7373 if ($ this ->app instanceof Lumen) {
74- $ this ->app ->configure (' sentry ' );
74+ $ this ->app ->configure (static :: $ abstract );
7575 }
7676
7777 $ this ->mergeConfigFrom (__DIR__ . '/../../../config/sentry.php ' , static ::$ abstract );
@@ -157,7 +157,7 @@ protected function configureAndRegisterClient(): void
157157 return $ clientBuilder ;
158158 });
159159
160- $ this ->app ->singleton (static :: $ abstract , function () {
160+ $ this ->app ->singleton (HubInterface::class , function () {
161161 /** @var \Sentry\ClientBuilderInterface $clientBuilder */
162162 $ clientBuilder = $ this ->app ->make (ClientBuilderInterface::class);
163163
@@ -212,7 +212,7 @@ protected function configureAndRegisterClient(): void
212212 return $ hub ;
213213 });
214214
215- $ this ->app ->alias (static :: $ abstract , HubInterface::class );
215+ $ this ->app ->alias (HubInterface::class, static :: $ abstract );
216216 }
217217
218218 /**
0 commit comments