update to PHP-8.1
[m6w6/seekat] / lib / API / ContentType / Handler / Stream.php
index 6a8535ee7749bd50f7dfbbc5e39aab86fdf411f7..3ab587d3feb95a08258a77e7662a97f1e6ccde27 100644 (file)
@@ -17,7 +17,7 @@ final class Stream implements Handler {
         * @inheritdoc
         * @param resource $data
         */
-       function encode($data): Body {
+       function encode(mixed $data): Body {
                return new Body($data);
        }
 
@@ -25,7 +25,7 @@ final class Stream implements Handler {
         * @inheritdoc
         * @return resource
         */
-       function decode(Body $body) {
+       function decode(Body $body) : mixed {
                return $body->getResource();
        }
 }