diff --git a/composer.json b/composer.json index 11d9c522..ba7e9803 100644 --- a/composer.json +++ b/composer.json @@ -65,7 +65,7 @@ "test": "vendor/bin/pest --compact", "format": "vendor/bin/php-cs-fixer fix --allow-risky=yes", "analyse": "vendor/bin/phpstan analyse", - "rector": "./vendor/bin/rector --dry-run", + "rector": "vendor/bin/rector --dry-run", "baseline": "./vendor/bin/phpstan analyse --generate-baseline --memory-limit=2G" }, "suggest": { diff --git a/src/BackupServiceProvider.php b/src/BackupServiceProvider.php index 92e10d75..037c5464 100644 --- a/src/BackupServiceProvider.php +++ b/src/BackupServiceProvider.php @@ -52,7 +52,7 @@ public function packageRegistered(): void $this->registerDiscordChannel(); - $this->app->scoped(Config::class, function (): \Spatie\Backup\Config\Config { + $this->app->scoped(Config::class, function (): Config { return Config::fromArray(config('backup')); }); } @@ -60,7 +60,7 @@ public function packageRegistered(): void protected function registerDiscordChannel(): void { Notification::resolved(function (ChannelManager $service) { - $service->extend('discord', function ($app): \Spatie\Backup\Notifications\Channels\Discord\DiscordChannel { + $service->extend('discord', function ($app): DiscordChannel { return new DiscordChannel(); }); });