summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2021-12-03 07:23:33 +0300
committerfox <[email protected]>2021-12-03 07:23:33 +0300
commit78e82b6043999f1acba72105eef4497e19cd3b9e (patch)
treed8c34f4b13e9367f5a069973f03571854450a1fb
parent5df8dacf9fea8b2631cb674b1af77794186d7305 (diff)
parent987870074bd17e24c52e51abddfaf48d63ed2f09 (diff)
Merge pull request 'Fixes declaration of Pref_Prefs::csrf_ignore to match IHandler::csrf_ignore' (#58) from jbaldus/tt-rss:jbaldus-fix-pref-prefs into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/58
-rw-r--r--classes/pref/prefs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index d3a5a1370..2d72a7732 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -27,7 +27,7 @@ class Pref_Prefs extends Handler_Protected {
const PI_ERR_NO_WORKDIR = "PI_ERR_NO_WORKDIR";
/** @param string $method */
- function csrf_ignore($method) : bool {
+ function csrf_ignore(string $method) : bool {
$csrf_ignored = array("index", "updateself", "otpqrcode");
return array_search($method, $csrf_ignored) !== false;