Update signature of handler 'csrf_ignore' to include types.

This commit is contained in:
wn_
2021-11-12 02:01:31 +00:00
parent 57bf56f794
commit 5606e38bff
12 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ class Pref_System extends Handler_Administrative {
private $log_page_limit = 15;
function csrf_ignore($method) {
function csrf_ignore(string $method): bool {
$csrf_ignored = array("index");
return array_search($method, $csrf_ignored) !== false;