summaryrefslogtreecommitdiffstats
path: root/lib/public/IImage.php
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2022-09-02 21:47:38 +0200
committerJ0WI <J0WI@users.noreply.github.com>2022-12-04 14:51:33 +0100
commit110ea0df46420e61d4e11954b27f333541ef3bfe (patch)
tree046b5f4e81384b491f435ac09c4745b784ffbc43 /lib/public/IImage.php
parent1dd3afefcd6ebb36f68dd5c0107faba6f62a1948 (diff)
downloadnextcloud-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.php8
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.