From f2758c8ebdc88b48dbcdc91aed8b2ad873df688f Mon Sep 17 00:00:00 2001 From: Lars Moelleken Date: Mon, 1 Feb 2016 13:26:42 +0100 Subject: [PATCH] [+]: ".gitattributes" <- prevent installing special files via composer [*]: add missing phpdoc --- .gitattributes | 8 ++++++++ src/JWT.php | 1 + 2 files changed, 9 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..c682f861 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +* text=auto + +/tests export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/.travis.yml export-ignore +/phpunit.xml.dist export-ignore +/run-tests.sh export-ignore diff --git a/src/JWT.php b/src/JWT.php index b3532df7..78512a19 100644 --- a/src/JWT.php +++ b/src/JWT.php @@ -130,6 +130,7 @@ public static function decode($jwt, $key, $allowed_algs = array()) * If the algorithm used is asymmetric, this is the private key * @param string $alg The signing algorithm. * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' + * @param mixed $keyId * @param array $head An array with header elements to attach * * @return string A signed JWT