summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorRichard de Boer <github@tubul.net>2021-04-10 14:49:13 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-06-07 21:33:52 +0000
commit7e9d459fea6c6c6eb834df6b1c2fe83beb26031b (patch)
tree909b60aba05157bc5c2ba509be45430990a8ca51 /apps/files/lib
parenta5bbd88355246e4888c3447f1b14683e462084b4 (diff)
downloadnextcloud-server-7e9d459fea6c6c6eb834df6b1c2fe83beb26031b.tar.gz
nextcloud-server-7e9d459fea6c6c6eb834df6b1c2fe83beb26031b.zip
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];