8000 minor #40775 [HttpClient] Revert "minor #40768 [PHPDoc] Fix 2 remain… · symfony/symfony@d359b76 · GitHub
[go: up one dir, main page]

Skip to content

Commit d359b76

Browse files
minor #40775 [HttpClient] Revert "minor #40768 [PHPDoc] Fix 2 remaining return mixed (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] Revert "minor #40768 [PHPDoc] Fix 2 remaining return mixed | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - This reverts commit 40d7315, reversing changes made to 4e904ec. As spotted by the CI and reported in #40768 (comment) Using `Psr7ResponseInterface|mixed` instead of just `mixed` provides a better DX, by making autocompletion more useful. Commits ------- afea0a0 Revert "minor #40768 [HttpClient] [PHPDoc] Fix 2 remaining return mixed (fancyweb)"
2 parents 40d7315 + afea0a0 commit d359b76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

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

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

0 commit comments

Comments
 (0)
0