diff --git a/packages/framework/src/Foundation/Internal/LoadConfiguration.php b/packages/framework/src/Foundation/Internal/LoadConfiguration.php index 450d7ffd513..3079c9258a8 100644 --- a/packages/framework/src/Foundation/Internal/LoadConfiguration.php +++ b/packages/framework/src/Foundation/Internal/LoadConfiguration.php @@ -6,7 +6,7 @@ use Phar; use Illuminate\Contracts\Foundation\Application; -use Illuminate\Contracts\Config\Repository as RepositoryContract; +use Illuminate\Contracts\Config\Repository; use Illuminate\Foundation\Bootstrap\LoadConfiguration as BaseLoadConfiguration; use function getenv; @@ -31,7 +31,7 @@ protected function getConfigurationFiles(Application $app): array } /** Load the configuration items from all the files. */ - protected function loadConfigurationFiles(Application $app, RepositoryContract $repository): void + protected function loadConfigurationFiles(Application $app, Repository $repository): void { parent::loadConfigurationFiles($app, $repository); @@ -40,7 +40,7 @@ protected function loadConfigurationFiles(Application $app, RepositoryContract $ $this->loadRuntimeConfiguration($app, $repository); } - private function mergeConfigurationFiles(RepositoryContract $repository): void + private function mergeConfigurationFiles(Repository $repository): void { // These files do commonly not need to be customized by the user, so to get them out of the way, // we don't include them in the default project install. @@ -50,7 +50,7 @@ private function mergeConfigurationFiles(RepositoryContract $repository): void } } - private function mergeConfigurationFile(RepositoryContract $repository, string $file): void + private function mergeConfigurationFile(Repository $repository, string $file): void { // We of course want the user to be able to customize the config files, // if they're present, so we'll merge their changes here. @@ -79,7 +79,7 @@ private static function providePharSupportIfNeeded(array &$files): void } } - private function loadRuntimeConfiguration(Application $app, RepositoryContract $repository): void + private function loadRuntimeConfiguration(Application $app, Repository $repository): void { if ($app->runningInConsole()) { if ($this->getArgv() !== null) { @@ -92,14 +92,14 @@ private function loadRuntimeConfiguration(Application $app, RepositoryContract $ } } - private function mergeCommandLineArguments(RepositoryContract $repository, string $argumentName, string $configKey, bool $value): void + private function mergeCommandLineArguments(Repository $repository, string $argumentName, string $configKey, bool $value): void { if (in_array($argumentName, $this->getArgv(), true)) { $repository->set($configKey, $value); } } - private function mergeRealtimeCompilerEnvironment(RepositoryContract $repository, string $environmentKey, string $configKey): void + private function mergeRealtimeCompilerEnvironment(Repository $repository, string $environmentKey, string $configKey): void { if ($this->getEnv($environmentKey) !== false) { $repository->set($configKey, $this->getEnv($environmentKey) === 'enabled');