summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-14 16:15:31 +0300
committerAndrew Dolgov <[email protected]>2021-11-14 16:15:31 +0300
commitc3ffa08807df4a83cd476aca79fc96217acc6c3a (patch)
tree67188f7c590420db97bbd071de5812c6946f7a68 /update.php
parent98af46addd0978c0a8d6893f16a9b46d548b06e7 (diff)
deal with phpstan warnings in update.php
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php4
1 files 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);