Thanks to visit codestin.com
Credit goes to github.com

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

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Two cases I forgot in #40728 😕

@carsonbot carsonbot added this to the 4.4 milestone Apr 11, 2021
@carsonbot carsonbot changed the title [HttpClient][PHPDoc] Fix 2 remaining return mixed [HttpClient] [PHPDoc] Fix 2 remaining return mixed Apr 11, 2021
@fancyweb fancyweb force-pushed the minor/mixed-return-2-44 branch from b010961 to 97a43e1 Compare April 11, 2021 17:17
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit 40d7315 into symfony:4.4 Apr 11, 2021
@derrabus
Copy link
Member

After merging your changes up to 5.2, the Travis run fails: https://travis-ci.com/github/symfony/symfony/jobs/497617008

1) Symfony\Component\HttpClient\Tests\Response\HttplugPromiseTest::testComplexNesting
TypeError: Symfony\Component\HttpClient\Response\HttplugPromise::wait(): Return value must be of type ?Psr\Http\Message\ResponseInterface, string returned

/home/travis/build/symfony/symfony/src/Symfony/Component/HttpClient/Response/HttplugPromise.php:65
/home/travis/build/symfony/symfony/src/Symfony/Component/HttpClient/vendor/guzzlehttp/promises/src/Promise.php:248
/home/travis/build/symfony/symfony/src/Symfony/Component/HttpClient/vendor/guzzlehttp/promises/src/Promise.php:224
/home/travis/build/symfony/symfony/src/Symfony/Component/HttpClient/vendor/guzzlehttp/promises/src/Promise.php:269
/home/travis/build/symfony/symfony/src/Symfony/Component/HttpClient/vendor/guzzlehttp/promises/src/Promise.php:226
/home/travis/build/symfony/symfony/src/Symfony/Component/HttpClient/vendor/guzzlehttp/promises/src/Promise.php:62
/home/travis/build/symfony/symfony/src/Symfony/Component/HttpClient/Response/HttplugPromise.php:59
/home/travis/build/symfony/symfony/src/Symfony/Component/HttpClient/Tests/Response/HttplugPromiseTest.php:34

Can you have a look, @fancyweb?

@fancyweb
Copy link
Contributor Author

fancyweb commented Apr 12, 2021 via email

nicolas-grekas added a commit to nicolas-grekas/symfony that referenced this pull request Apr 12, 2021
…urn mixed (fancyweb)"

This reverts commit 40d7315, reversing
changes made to 4e904ec.
@nicolas-grekas
Copy link
Member

Reverted in #40775

@fancyweb fancyweb deleted the minor/mixed-return-2-44 branch April 12, 2021 07:26
nicolas-grekas added a commit that referenced this pull request Apr 12, 2021
…ng 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)"
nicolas-grekas added a commit that referenced this pull request Apr 12, 2021
* 4.4:
  [HttpKernel] Minor fixes and tweaks in the Symfony Welcome Page
  Revert "minor #40768 [HttpClient] [PHPDoc] Fix 2 remaining return mixed (fancyweb)"
nicolas-grekas added a commit that referenced this pull request Apr 12, 2021
* 5.2:
  [HttpKernel] Minor fixes and tweaks in the Symfony Welcome Page
  Revert "minor #40768 [HttpClient] [PHPDoc] Fix 2 remaining return mixed (fancyweb)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants