From 61f6b359f88c0af702e60e1c3ef86eba1056c920 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Wed, 22 Oct 2025 14:25:53 +1100 Subject: [PATCH] Add warning when server workers cannot be respected --- src/Illuminate/Foundation/Console/ServeCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Foundation/Console/ServeCommand.php b/src/Illuminate/Foundation/Console/ServeCommand.php index dc618f61a199..6dc1e43c1d1e 100644 --- a/src/Illuminate/Foundation/Console/ServeCommand.php +++ b/src/Illuminate/Foundation/Console/ServeCommand.php @@ -104,6 +104,8 @@ protected function initialize(InputInterface $input, OutputInterface $output) if ($workers > 1 && ! $this->option('no-reload') && ! (int) env('LARAVEL_SAIL', 0)) { + $this->components->warn('Unable to respect the `PHP_CLI_SERVER_WORKERS` environment variable without the `--no-reload` flag. Only creating a single server.'); + return false; }