X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FAPI%2FContentType%2FHandler%2FBase64.php;fp=lib%2FAPI%2FContentType%2FHandler%2FBase64.php;h=342719d227cb0942b4d5d76e11eafd9b0d5e9e6b;hp=979c97d055fe8e11dc83f67f5ad56bee40cc82b9;hb=654d736df2c46ec2520f73e9089d06a44f2b9c50;hpb=2121556150be871684b5046af7cf250b8219128d;ds=sidebyside diff --git a/lib/API/ContentType/Handler/Base64.php b/lib/API/ContentType/Handler/Base64.php index 979c97d..342719d 100644 --- a/lib/API/ContentType/Handler/Base64.php +++ b/lib/API/ContentType/Handler/Base64.php @@ -20,7 +20,7 @@ final class Base64 implements Handler { * @inheritdoc * @param string $data */ - function encode($data): Body { + function encode(mixed $data): Body { if (!is_scalar($data)) { throw new InvalidArgumentException( "BASE64 encoding argument must be scalar, got ".typeof($data)); @@ -32,7 +32,7 @@ final class Base64 implements Handler { * @inheritdoc * @return string */ - function decode(Body $body) { + function decode(Body $body) : string { $data = base64_decode($body, true); if (false === $data) {