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:
parent
697b22a594
commit
b9c797304f
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue