Skip to content

Commit 83a88d3

Browse files
authored
chore: add backslash
1 parent eb2f940 commit 83a88d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/JWT.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function __construct($key, $algo = 'HS256', $maxAge = 3600, $leeway = 0,
8383

8484
if (\is_array($key)) {
8585
$this->registerKeys($key);
86-
$key = reset($key); // use first one!
86+
$key = \reset($key); // use first one!
8787
}
8888

8989
$this->key = $key;
@@ -233,7 +233,7 @@ protected function verify($input, $signature)
233233
protected function urlSafeEncode($data)
234234
{
235235
if (\is_array($data)) {
236-
$data = \json_encode($data, JSON_UNESCAPED_SLASHES);
236+
$data = \json_encode($data, \JSON_UNESCAPED_SLASHES);
237237
$this->validateLastJson();
238238
}
239239

0 commit comments

Comments
 (0)