Allow false as return type of FileBackendStore::doGetFileXAttributes
authorUmherirrender <umherirrender_de.wp@web.de>
Tue, 18 Jun 2019 19:30:49 +0000 (21:30 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Tue, 18 Jun 2019 19:30:49 +0000 (21:30 +0200)
SwiftFileBackend::doGetFileXAttributes is returning false,
the usage in FileBackendStore is checking with is_array before use

Change-Id: I7097d3a824c897571d3ebf3ea73cf52c1af89fb5

includes/libs/filebackend/FileBackendStore.php

index 3663637..e2a25fc 100644 (file)
@@ -747,7 +747,7 @@ abstract class FileBackendStore extends FileBackend {
        /**
         * @see FileBackendStore::getFileXAttributes()
         * @param array $params
-        * @return array[][]
+        * @return array[][]|false
         */
        protected function doGetFileXAttributes( array $params ) {
                return [ 'headers' => [], 'metadata' => [] ]; // not supported