Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard de Boer <github@tubul.net>2021-04-10 15:49:13 +0300
committerRichard de Boer <git@tubul.net>2021-05-29 15:14:52 +0300
commitf23d057ad92d77cbfeda9eed65a4874dc570761e (patch)
tree1e371cfb577d453850bf6df57ace3ca84be9f5af /apps/files/lib
parent697b22a5947e08a92ecd3576d5ea8515433d740b (diff)
Fix functions taking optional parameters before required ones
PHP 8 shows deprecation warnings about this, see #25806 Removes the "default" values, as they actually are required parameters anyway. Signed-off-by: Richard de Boer <git@tubul.net>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Helper.php b/apps/files/lib/Helper.php
index 699caec59eb..5ed11bd8663 100644
--- a/apps/files/lib/Helper.php
+++ b/apps/files/lib/Helper.php
@@ -217,7 +217,7 @@ class Helper {
* @param ITagManager $tagManager
* @return array file list populated with tags
*/
- public static function populateTags(array $fileList, $fileIdentifier = 'fileid', ITagManager $tagManager) {
+ public static function populateTags(array $fileList, $fileIdentifier, ITagManager $tagManager) {
$ids = [];
foreach ($fileList as $fileData) {
$ids[] = $fileData[$fileIdentifier];