From 7d2515f298cd4b6ab59cdff88b299582c9f68352 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Mon, 6 May 2024 13:32:09 +0200 Subject: [PATCH] fix(OC_Image): Set correct return type for exif_imagetype stub Signed-off-by: provokateurin --- lib/private/legacy/OC_Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/legacy/OC_Image.php b/lib/private/legacy/OC_Image.php index aac0c49673400..bca9f6a0043ff 100644 --- a/lib/private/legacy/OC_Image.php +++ b/lib/private/legacy/OC_Image.php @@ -1141,7 +1141,7 @@ public function __destruct() { * * @link https://www.php.net/manual/en/function.exif-imagetype.php#80383 * @param string $fileName - * @return string|boolean + * @return int|false */ function exif_imagetype(string $fileName) { if (($info = getimagesize($fileName)) !== false) {