Skip to content

Commit

Permalink
Add mixed return type
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
ruudk authored Mar 7, 2024
1 parent 2311491 commit 71c020a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Decorator/StreamDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ public function getContents(): string
return $this->stream->getContents();
}

/**
* @return mixed
*/
public function getMetadata(string $key = null)
{
return $this->stream->getMetadata($key);
Expand Down

0 comments on commit 71c020a

Please sign in to comment.