10000 [HttpClient][PHPDoc] Fix 2 remaining return mixed · symfony/symfony@97a43e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97a43e1

Browse files
committed
[HttpClient][PHPDoc] Fix 2 remaining return mixed
1 parent 7ce1dda commit 97a43e1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Symfony/Component/HttpClient/Response/HttplugPromise.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ public function getState(): string
4949

5050
/**
5151
* {@inheritdoc}
52-
*
53-
* @return Psr7ResponseInterface|mixed
5452
*/
55-
public function wait($unwrap = true)
53+
public function wait($unwrap = true): ?Psr7ResponseInterface
5654
{
5755
$result = $this->promise->wait($unwrap);
5856

src/Symfony/Contracts/HttpClient/ResponseInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ public function cancel(): void;
104104
*
105105
* Other info SHOULD be named after curl_getinfo()'s associative return value.
106106
*
107-
* @return array|mixed An array of all available info, or one of them when $type is
108-
* provided, or null when an unsupported type is requested
107+
* @return mixed An array of all available info, or one of them when $type is
108+
* provided, or null when an unsupported type is requested
109109
*/
110110
public function getInfo(string $type = null);
111111
}

0 commit comments

Comments
 (0)
0