]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Response.php
Changes after review
[friendica.git] / src / Module / Response.php
index d38b330bb3bd57fa1a6c337354d05041b50b18bc..78db953bb4a3b7ca24dc501fc389b1ced762eb70 100644 (file)
@@ -89,7 +89,7 @@ class Response implements ICanCreateResponses
        /**
         * {@inheritDoc}
         */
-       public function setType(string $type, ?string $content_type = null): void
+       public function setType(string $type = Response::TYPE_HTML, ?string $content_type = null): void
        {
                if (!in_array($type, static::ALLOWED_TYPES)) {
                        throw new InternalServerErrorException('wrong type');