From f45a0bb19cd4a108d32acebf303c9fc593ada82b Mon Sep 17 00:00:00 2001 From: nashe Date: Thu, 4 Jan 2018 22:47:49 +0100 Subject: Add missing "new" when raising an InvaludArgumentException --- app/classes/CSRF.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/classes/CSRF.php b/app/classes/CSRF.php index 639f573..9a700cf 100644 --- a/app/classes/CSRF.php +++ b/app/classes/CSRF.php @@ -35,7 +35,7 @@ class CSRF public static function generate($action = null) { if (!is_string($action)) { - throw InvalidArgumentException('A valid action must be defined.'); + throw new InvalidArgumentException('A valid action must be defined.'); } return hash_hmac(self::HMAC_ALGORITHM, $action, self::getKey()); } -- cgit v1.2.1