From 5606e38bff619c388c9621dde30f0d54127a21f4 Mon Sep 17 00:00:00 2001 From: wn_ Date: Fri, 12 Nov 2021 02:01:31 +0000 Subject: Update signature of handler 'csrf_ignore' to include types. --- classes/pluginhandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/pluginhandler.php') diff --git a/classes/pluginhandler.php b/classes/pluginhandler.php index 75b823822..9b3772ddc 100644 --- a/classes/pluginhandler.php +++ b/classes/pluginhandler.php @@ -1,6 +1,6 @@ Date: Fri, 12 Nov 2021 06:16:18 +0000 Subject: Address PHPStan warnings in 'classes/mailer.php', 'classes/opml.php', and 'classes/pluginhandler.php'. --- classes/pluginhandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/pluginhandler.php') diff --git a/classes/pluginhandler.php b/classes/pluginhandler.php index 9b3772ddc..5c73920e5 100644 --- a/classes/pluginhandler.php +++ b/classes/pluginhandler.php @@ -4,7 +4,7 @@ class PluginHandler extends Handler_Protected { return true; } - function catchall($method) { + function catchall(string $method): void { $plugin_name = clean($_REQUEST["plugin"]); $plugin = PluginHost::getInstance()->get_plugin($plugin_name); $csrf_token = ($_POST["csrf_token"] ?? ""); -- cgit v1.2.3