summaryrefslogtreecommitdiffstats
path: root/app/classes/CSRF.php
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2018-01-04 22:47:49 +0100
committernashe <thomas@chauchefoin.fr>2018-01-04 22:47:49 +0100
commitf45a0bb19cd4a108d32acebf303c9fc593ada82b (patch)
treea1fdbe40c495fca8b03a7b454fe92f9772267cf0 /app/classes/CSRF.php
parent98097b5724aa49967db2db8bb0f6aa21eacd13db (diff)
downloadplanet-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.php2
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());
}