diff --git a/src/MsGraphServiceProvider.php b/src/MsGraphServiceProvider.php index 477dfaa..89d3268 100755 --- a/src/MsGraphServiceProvider.php +++ b/src/MsGraphServiceProvider.php @@ -7,6 +7,7 @@ use Dcblogdev\MsGraph\Facades\MsGraph as MsGraphFacade; use GuzzleHttp\Client; use Illuminate\Filesystem\FilesystemAdapter; +use Illuminate\Foundation\Application; use Illuminate\Routing\Router; use Illuminate\Support\Facades\Storage; use Illuminate\Support\ServiceProvider; @@ -65,7 +66,7 @@ public function configurePublishing(): void public function registerFilesystem(): void { - Storage::extend('msgraph', function (string $app, array $config) { + Storage::extend('msgraph', function (Application $app, array $config) { $graph = new Graph; if (MsGraphFacade::isConnected()) {