diff options
author | nashe <thomas@chauchefoin.fr> | 2018-01-04 22:47:49 +0100 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2018-01-04 22:47:49 +0100 |
commit | f45a0bb19cd4a108d32acebf303c9fc593ada82b (patch) | |
tree | a1fdbe40c495fca8b03a7b454fe92f9772267cf0 /app/classes/CSRF.php | |
parent | 98097b5724aa49967db2db8bb0f6aa21eacd13db (diff) | |
download | planet-f45a0bb19cd4a108d32acebf303c9fc593ada82b.tar planet-f45a0bb19cd4a108d32acebf303c9fc593ada82b.tar.gz planet-f45a0bb19cd4a108d32acebf303c9fc593ada82b.tar.bz2 planet-f45a0bb19cd4a108d32acebf303c9fc593ada82b.tar.xz planet-f45a0bb19cd4a108d32acebf303c9fc593ada82b.zip |
Add missing "new" when raising an InvaludArgumentException
Diffstat (limited to 'app/classes/CSRF.php')
-rw-r--r-- | app/classes/CSRF.php | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |