ParagonIE\AntiCSRF\AntiCSRF::__construct PHP Method

__construct() public method

NULL is not a valid array type
public __construct ( array &$post = null, array &$session = null, array &$server = null )
$post array
$session array
$server array
    public function __construct(&$post = null, &$session = null, &$server = null)
    {
        if ($post !== null) {
            $this->post =& $post;
        } else {
            $this->post =& $_POST;
        }
        if ($server !== null) {
            $this->server =& $server;
        } else {
            $this->server =& $_SERVER;
        }
        if ($session === null && isset($_SESSION)) {
            $this->session =& $_SESSION;
        } else {
            $this->session =& $session;
        }
    }