Skip to content

Commit e923244

Browse files
committed
Remove connect $method argument
1 parent 385374f commit e923244

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/HttpClient/EventSourceHttpClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function __construct(HttpClientInterface $client = null, float $reconnect
3737
$this->reconnectionTime = $reconnectionTime;
3838
}
3939

40-
public function connect($method, string $url, array $options = []): ResponseInterface
40+
public function connect(string $url, array $options = []): ResponseInterface
4141
{
42-
return $this->request($method, $url, self::mergeDefaultOptions($options, [
42+
return $this->request('GET', $url, self::mergeDefaultOptions($options, [
4343
'buffer' => false,
4444
'headers' => [
4545
'Accept' => 'text/event-stream',

src/Symfony/Component/HttpClient/Tests/EventSourceHttpClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testGetServerSentEvents()
7878
$httpClient->method('stream')->willReturn($responseStream);
7979

8080
$es = new EventSourceHttpClient($httpClient);
81-
$res = $es->connect('GET', 'http://localhost:8080/events');
81+
$res = $es->connect('http://localhost:8080/events');
8282

8383
$expected = [
8484
new FirstChunk(),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy