-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Closed
Description
Laravel Version
12.0.1
PHP Version
8.4.4
Database Driver & Version
No response
Description
Http::failedConnection() is broken after my upgrade from PHP 8.3 to PHP 8.4.4
The PestPHP process just finishes with exit code 139 without error message.
Seems like the process will be killed in GuzzleHttp\Promise\RejectedPromise::wait that is called in Illuminate\Http\Client\Factory::fake.
Note: This does not occur when debugging with xdebug.
Steps To Reproduce
- Create Project with Laravel 12.0.1, Pest 3.7.4 and Guzzle 7.9.2 in Docker php:8.4-cli-alpine.
- Add and run this unit test:
test('wtf', function ()
{
Http::fake(['*' => Http::failedConnection()]);
Http::get('domain.com'); // This will kill the php process.
})->throws(ConnectionException::class);
- See process finished with exit code 139
Metadata
Metadata
Assignees
Labels
No labels
