From 69110a235a61250e0e46df165cc2a622e5841ed6 Mon Sep 17 00:00:00 2001 From: Jim Date: Wed, 3 Sep 2025 12:09:53 -0700 Subject: [PATCH] Correct undefined SIGTERM error when running in a Linux environment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ```php Undefined constant "Pest\Browser\Playwright\Servers\SIGTERM" at vendor/pestphp/pest-plugin-browser/src/Playwright/Servers/PlaywrightNpmServer.php:99 95▕ { 96▕ if ($this->systemProcess instanceof SystemProcess && $this->isRunning()) { 97▕ $this->systemProcess->stop( 98▕ timeout: 0.1, ➜ 99▕ signal: PHP_OS_FAMILY === 'Windows' ? null : SIGTERM, 100▕ ); 101▕ } 102▕ 103▕ $this->systemProcess = null; ``` --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 16c017d0..496514b4 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,8 @@ "amphp/websocket-client": "^2.0.2", "pestphp/pest": "^4.0.4", "pestphp/pest-plugin": "^4.0.0", - "symfony/process": "^7.3.3" + "symfony/process": "^7.3.3", + "ext-pcntl": "*" }, "autoload": { "psr-4": { @@ -38,7 +39,6 @@ } }, "require-dev": { - "ext-pcntl": "*", "ext-posix": "*", "livewire/livewire": "^3.6.4", "nunomaduro/collision": "^8.8.2",