10000 minor #40768 [HttpClient] [PHPDoc] Fix 2 remaining return mixed (fanc… · symfony/symfony@40d7315 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40d7315

Browse files
minor #40768 [HttpClient] [PHPDoc] Fix 2 remaining return mixed (fancyweb)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] [PHPDoc] Fix 2 remaining return mixed | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Two cases I forgot in #40728 😕 Commits ------- 97a43e1 [HttpClient][PHPDoc] Fix 2 remaining return mixed
2 parents 4e904ec + 97a43e1 commit 40d7315

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