From ba2cf4caf6f922a33f1ccca03eb8f6b5943315af Mon Sep 17 00:00:00 2001 From: Maarten Buis Date: Thu, 22 Dec 2022 22:36:16 +0100 Subject: [PATCH 1/2] Passthrough `PATH` variable to serve command --- src/Illuminate/Foundation/Console/ServeCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index b3c07993ccd1..fc73f3b8abc6 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -74,6 +74,7 @@ class ServeCommand extends Command 'XDEBUG_CONFIG', 'XDEBUG_MODE', 'XDEBUG_SESSION', + 'PATH', ]; /** From 2e84c4510f7dcf91a25a346a71373ae08497cea0 Mon Sep 17 00:00:00 2001 From: Maarten Buis Date: Fri, 23 Dec 2022 01:02:46 +0100 Subject: [PATCH 2/2] Corrected ordering of the `$passthroughVariables` variable --- src/Illuminate/Foundation/Console/ServeCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index fc73f3b8abc6..67321fd79fe5 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -68,13 +68,13 @@ class ServeCommand extends Command public static $passthroughVariables = [ 'APP_ENV', 'LARAVEL_SAIL', + 'PATH', 'PHP_CLI_SERVER_WORKERS', 'PHP_IDE_CONFIG', 'SYSTEMROOT', 'XDEBUG_CONFIG', 'XDEBUG_MODE', 'XDEBUG_SESSION', - 'PATH', ]; /**