From c09d1a35d531f2853e7d4e9613e51c76ee26567a Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Thu, 2 Apr 2020 20:37:23 +0200 Subject: [PATCH] Fixed CSRF-null bug A bug caused FuzeWorks instances to crash when CSRF protection was disabled. This was fixed by allowing the method to return null as well. --- src/FuzeWorks/Security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FuzeWorks/Security.php b/src/FuzeWorks/Security.php index 99be132..574daf5 100644 --- a/src/FuzeWorks/Security.php +++ b/src/FuzeWorks/Security.php @@ -320,7 +320,7 @@ class Security { * @see Security::$_csrf_hash * @return string CSRF hash */ - public function get_csrf_hash(): string + public function get_csrf_hash(): ?string { return $this->_csrf_hash; }