From 71c020ab85a3ad9873da6c8ce9c4a63b5621dcc4 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 7 Mar 2024 12:15:39 +0100 Subject: [PATCH] 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. ``` --- src/Decorator/StreamDecorator.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Decorator/StreamDecorator.php b/src/Decorator/StreamDecorator.php index b1f306d..5a6bb2d 100644 --- a/src/Decorator/StreamDecorator.php +++ b/src/Decorator/StreamDecorator.php @@ -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);