From 618e96b793769ef4d7912f1f16f1ca7436acd199 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 13 Nov 2021 19:55:30 +0300 Subject: [PATCH] deal with some warnings in plugins/trgm,readability and base plugin class --- classes/plugin.php | 2 +- plugins/af_psql_trgm/init.php | 8 +++++++- plugins/af_readability/init.php | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/classes/plugin.php b/classes/plugin.php index eae2c0c17..ea79e6a65 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -20,7 +20,7 @@ abstract class Plugin { $this->pdo = Db::pdo(); } - /** @return array */ + /** @return array */ function flags() { /* associative array, possible keys: needs_curl = boolean diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index 87415450b..aea24fea7 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -1,9 +1,13 @@ true); } + /** @return void */ function save() { $enable_share_anything = checkbox_to_sql_bool($_POST["enable_share_anything"] ?? "");