Skip to content

Commit 71c020a

Browse files
authored
Add mixed return type
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. ```
1 parent 2311491 commit 71c020a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Decorator/StreamDecorator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ public function getContents(): string
8686
return $this->stream->getContents();
8787
}
8888

89+
/**
90+
* @return mixed
91+
*/
8992
public function getMetadata(string $key = null)
9093
{
9194
return $this->stream->getMetadata($key);

0 commit comments

Comments
 (0)