summaryrefslogtreecommitdiff
path: root/classes/pluginhandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/pluginhandler.php')
-rw-r--r--classes/pluginhandler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pluginhandler.php b/classes/pluginhandler.php
index 75b823822..5c73920e5 100644
--- a/classes/pluginhandler.php
+++ b/classes/pluginhandler.php
@@ -1,10 +1,10 @@
<?php
class PluginHandler extends Handler_Protected {
- function csrf_ignore($method) {
+ function csrf_ignore(string $method): bool {
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"] ?? "");