diff options
author | J0WI <J0WI@users.noreply.github.com> | 2022-09-02 21:47:38 +0200 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2022-12-04 14:51:33 +0100 |
commit | 110ea0df46420e61d4e11954b27f333541ef3bfe (patch) | |
tree | 046b5f4e81384b491f435ac09c4745b784ffbc43 /lib/public/IImage.php | |
parent | 1dd3afefcd6ebb36f68dd5c0107faba6f62a1948 (diff) | |
download | nextcloud-server-110ea0df46420e61d4e11954b27f333541ef3bfe.tar.gz nextcloud-server-110ea0df46420e61d4e11954b27f333541ef3bfe.zip |
Allow empty mimeType
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/public/IImage.php')
-rw-r--r-- | lib/public/IImage.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/IImage.php b/lib/public/IImage.php index 43db00a8bd1..f1ac3bf1a50 100644 --- a/lib/public/IImage.php +++ b/lib/public/IImage.php @@ -41,11 +41,11 @@ interface IImage { public function valid(): bool; /** - * Returns the MIME type of the image or an empty string if no image is loaded. + * Returns the MIME type of the image or null if no image is loaded. * * @since 8.1.0 */ - public function mimeType(): string; + public function mimeType(): ?string; /** * Returns the width of the image or -1 if no image is loaded. @@ -98,11 +98,11 @@ interface IImage { public function resource(); /** - * @return string Returns the mimetype of the data. Returns the empty string + * @return string Returns the mimetype of the data. Returns null * if the data is not valid. * @since 13.0.0 */ - public function dataMimeType(): string; + public function dataMimeType(): ?string; /** * @return string Returns the raw image data. |