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.
This commit is contained in:
Abel Hoogeveen 2020-04-02 20:37:23 +02:00
parent b976dbeae3
commit c09d1a35d5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}