From 987870074bd17e24c52e51abddfaf48d63ed2f09 Mon Sep 17 00:00:00 2001 From: jbaldus Date: Thu, 2 Dec 2021 20:57:19 +0300 Subject: Fixes declaration of Pref_Prefs::csrf_ignore to match IHandler::csrf_ignore --- classes/pref/prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/pref') 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; -- cgit v1.2.3