Skip to content
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

Add mixed return type to StreamInterface::getMetadata #161

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Mar 7, 2024

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
Documentation
License MIT

What's in this PR?

Fixes the following error caught by Symfony's PHPUnit Bridge:

  1x: Method "Psr\Http\Message\StreamInterface::getMetadata()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Http\Message\Encoding\FilteredStream" now to avoid errors or add an explicit @return annotation to suppress this message.

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)

Fixes the following error caught by Symfony's PHPUnit Bridge:

```
  1x: Method "Psr\Http\Message\StreamInterface::getMetadata()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "Http\Message\Encoding\FilteredStream" now to avoid errors or add an explicit @return annotation to suppress this message.
```
@ruudk
Copy link
Contributor Author

ruudk commented Mar 7, 2024

@dbu Today, Symfony started to complain about this. I have no idea how we didn't caught this earlier. Could you approve the workflow so that we can patch this, thanks! 🙌

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@dbu dbu merged commit 1fb0e9b into php-http:1.x Mar 7, 2024
14 of 15 checks passed
@ruudk ruudk deleted the patch-1 branch March 7, 2024 13:17
@dbu
Copy link
Contributor

dbu commented Mar 7, 2024

https://github.com/php-http/message/releases/tag/1.16.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants