Allow int as return type of MediaHandler::isMetadataValid
authorUmherirrender <umherirrender_de.wp@web.de>
Tue, 4 Jun 2019 19:33:37 +0000 (21:33 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Tue, 4 Jun 2019 19:33:37 +0000 (21:33 +0200)
MediaHandler::METADATA_COMPATIBLE is a int,
which is a possible return value here

Change-Id: Ia84139ee8e09839e1f46a6d34738612dfd365415

includes/media/MediaHandler.php
includes/media/XCFHandler.php

index 1a96c1d..7dd0491 100644 (file)
@@ -193,7 +193,7 @@ abstract class MediaHandler {
         *  performance problems.
         * @param File $image
         * @param string $metadata The metadata in serialized form
-        * @return bool
+        * @return bool|int
         */
        public function isMetadataValid( $image, $metadata ) {
                return self::METADATA_GOOD;
index e47cc37..e2cc1b2 100644 (file)
@@ -186,7 +186,7 @@ class XCFHandler extends BitmapHandler {
         *
         * @param File $file The file object for the file in question
         * @param string $metadata Serialized metadata
-        * @return bool One of the self::METADATA_(BAD|GOOD|COMPATIBLE) constants
+        * @return bool|int One of the self::METADATA_(BAD|GOOD|COMPATIBLE) constants
         */
        public function isMetadataValid( $file, $metadata ) {
                if ( !$metadata ) {