diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 315080bc24d1..bdfa73cb2657 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -14,6 +14,7 @@ use Illuminate\Events\EventServiceProvider; use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables; +use Illuminate\Foundation\Configuration\ApplicationBuilder; use Illuminate\Foundation\Events\LocaleUpdated; use Illuminate\Http\Request; use Illuminate\Log\LogServiceProvider; @@ -221,9 +222,8 @@ public function __construct($basePath = null) * Begin configuring a new Laravel application instance. * * @param string|null $baseDirectory - * @return \Illuminate\Foundation\ApplicationBuilder */ - public static function configure(string $baseDirectory = null) + public static function configure(string $baseDirectory = null): ApplicationBuilder { $baseDirectory = match (true) { is_string($baseDirectory) => $baseDirectory,