Closed
Description
- Laravel Version: 9.x-dev
- PHP Version: 8.1.1
- Guzzle Version: 7.4.1
Steps To Reproduce:
Run in tinker:
Http::withOptions([
'timeout' => 1,
'connect_timeout' => 1,
])->get('http://laravel.com')
Description:
This PR #40187 introduces breaking change to Http
call above.
There's standalone timeout
method to set timeout, but currently there's no way to set connect_timeout
outside of withOptions
. This is due to withOptions
is doing array_merge_recursive
causing existing options to be arrayed and when the options get to guzzle, it cannot handle array * int
.
Metadata
Metadata
Assignees
Labels
No labels