diff options
author | Andrew Dolgov <[email protected]> | 2021-11-14 16:49:10 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-14 16:49:10 +0300 |
commit | af2f4460ce94f48aa4c3bb3176c59325b6612b32 (patch) | |
tree | 7d49a2d9ac31ec6493b60a2bb4a957d38164cc48 /classes/pref | |
parent | c3ffa08807df4a83cd476aca79fc96217acc6c3a (diff) |
* deal with some phpstan warnings in base plugin class
* arguably better hack for incompatible plugins causing E_COMPILE_ERROR
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/prefs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 3a39bf981..025d8fda2 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -17,7 +17,7 @@ class Pref_Prefs extends Handler_Protected { const PI_ERR_PLUGIN_NOT_FOUND = "PI_ERR_PLUGIN_NOT_FOUND"; const PI_ERR_NO_WORKDIR = "PI_ERR_NO_WORKDIR"; - function csrf_ignore(string $method): bool { + function csrf_ignore($method) : bool { $csrf_ignored = array("index", "updateself", "otpqrcode"); return array_search($method, $csrf_ignored) !== false; |