8000 [HttpClient] [PHPDoc] Fix 2 remaining return mixed by fancyweb · Pull Request #40768 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpClient] [PHPDoc] Fix 2 remaining return mixed #40768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/Symfony/Component/HttpClient/Response/HttplugPromise.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ public function getState(): string

/**
* {@inheritdoc}
*
* @return Psr7ResponseInterface|mixed
*/
public function wait($unwrap = true)
public function wait($unwrap = true): ?Psr7ResponseInterface
{
$result = $this->promise->wait($unwrap);

Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/Contracts/HttpClient/ResponseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ public function cancel(): void;
*
* Other info SHOULD be named after curl_getinfo()'s associative return value.
*
* @return array|mixed An array of all available info, or one of them when $type is
* provided, or null when an unsupported type is requested
* @return mixed An array of all available info, or one of them when $type is
* provided, or null when an unsupported type is requested
*/
public function getInfo(string $type = null);
}
0