Fix a php8 warning

There is no need to provide a default value for fileIdentifier,
since the parameter is always used on every callsite.
This also fixes the following warning:

"Required parameter $tagManager follows optional parameter $fileIdentifier at /var/www/nextcloud/apps/files/lib/Helper.php#220"

Signed-off-by: jvoisin <julien.voisin@dustri.org>
This commit is contained in:
jvoisin 2021-05-29 13:52:19 +02:00
parent 697b22a594
commit b9c797304f
1 changed files with 1 additions and 1 deletions

View File

@ -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];