From c94f1b6ff8a2a82fa0d6ad725144c5380fd0df7b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 6 Feb 2021 17:38:24 +0300 Subject: fix some more warnings reported by phpstan --- classes/pluginhost.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes/pluginhost.php') diff --git a/classes/pluginhost.php b/classes/pluginhost.php index e56a237fc..bcde12551 100755 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -390,13 +390,13 @@ class PluginHost { if ($sth->fetch()) { $sth = $this->pdo_data->prepare("UPDATE ttrss_plugin_storage SET content = ? WHERE owner_uid= ? AND name = ?"); - $sth->execute([(string)$content, $this->owner_uid, $plugin]); + $sth->execute([$content, $this->owner_uid, $plugin]); } else { $sth = $this->pdo_data->prepare("INSERT INTO ttrss_plugin_storage (name,owner_uid,content) VALUES (?, ?, ?)"); - $sth->execute([$plugin, $this->owner_uid, (string)$content]); + $sth->execute([$plugin, $this->owner_uid, $content]); } $this->pdo_data->commit(); -- cgit v1.2.3