From e75645a574dc52ea58f434fa96406c22ec5975c7 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Tue, 18 Jun 2019 21:30:49 +0200 Subject: [PATCH] Allow false as return type of FileBackendStore::doGetFileXAttributes SwiftFileBackend::doGetFileXAttributes is returning false, the usage in FileBackendStore is checking with is_array before use Change-Id: I7097d3a824c897571d3ebf3ea73cf52c1af89fb5 --- includes/libs/filebackend/FileBackendStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/filebackend/FileBackendStore.php b/includes/libs/filebackend/FileBackendStore.php index 3663637747..e2a25fcd51 100644 --- a/includes/libs/filebackend/FileBackendStore.php +++ b/includes/libs/filebackend/FileBackendStore.php @@ -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 -- 2.20.1