From e64094440a8e6be67c0e6f19abd6cce57b6843ee Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Tue, 13 Feb 2018 20:43:09 +0000 Subject: [PATCH] Adds backwards compatible error checking --- .../Foundation/Bootstrap/LoadEnvironmentVariables.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php b/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php index 9cbebedbe5df..f67f3cf061c9 100644 --- a/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php +++ b/src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php @@ -26,8 +26,10 @@ public function bootstrap(Application $app) try { (new Dotenv($app->environmentPath(), $app->environmentFile()))->load(); - } catch (InvalidPathException | InvalidFileException $e) { + } catch (InvalidPathException $e) { // + } catch (InvalidFileException $e) { + dd('Fatal Error: Values in .env containing spaces must be surrounded by quotes.'); } }