From: Umherirrender Date: Tue, 18 Jun 2019 19:30:49 +0000 (+0200) Subject: Allow false as return type of FileBackendStore::doGetFileXAttributes X-Git-Tag: 1.34.0-rc.0~1083^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=e75645a574dc52ea58f434fa96406c22ec5975c7;p=lhc%2Fweb%2Fwiklou.git 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 --- 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