From c3ffa08807df4a83cd476aca79fc96217acc6c3a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 14 Nov 2021 16:15:31 +0300 Subject: [PATCH] deal with phpstan warnings in update.php --- update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.php b/update.php index d62825b98..90251c2f3 100755 --- a/update.php +++ b/update.php @@ -378,7 +378,7 @@ Debug::log("Exporting feeds of user $user to $filename as OPML..."); if ($owner_uid = UserHelper::find_user_by_login($user)) { - $opml = new OPML(""); + $opml = new OPML([]); $rc = $opml->opml_export($filename, $owner_uid, false, true, true); @@ -394,7 +394,7 @@ Debug::log("Importing feeds of user $user from OPML file $filename..."); if ($owner_uid = UserHelper::find_user_by_login($user)) { - $opml = new OPML(""); + $opml = new OPML([]); $rc = $opml->opml_import($owner_uid, $filename);