Skip to content

Commit 84776c7

Browse files
committed
Fix wrong type of http_connect_timeout|http_timeout options
It has to be float, otherwise it's not possible to set it lower than 1s See: https://github.com/symfony/symfony/blob/8e7ea19541b70aab3206a681dee497813f7b02f2/src/Symfony/Contracts/HttpClient/HttpClientInterface.php#L55-L56
1 parent 2fa1f8e commit 84776c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ public function getConfigTreeBuilder(): TreeBuilder
135135
->booleanNode('send_default_pii')->end()
136136
->integerNode('max_value_length')->min(0)->end()
137137
->scalarNode('http_proxy')->end()
138-
->integerNode('http_connect_timeout')
138+
->floatNode('http_connect_timeout')
139139
->min(0)
140140
->info('The maximum number of seconds to wait while trying to connect to a server. It works only when using the default transport.')
141141
->end()
142-
->integerNode('http_timeout')
142+
->floatNode('http_timeout')
143143
->min(0)
144144
->info('The maximum execution time for the request+response as a whole. It works only when using the default transport.')
145145
->end()

0 commit comments

Comments
 (0)