Skip to content

Commit 2d569b8

Browse files
authored
Merge pull request #33 from Krisell/patch-1
Consistently use short array syntax in readme
2 parents 2a65e4f + 75cc5bd commit 2d569b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ $ make && make install
2525

2626
```php
2727
$key = "example-hmac-key";
28-
$payload = array(
28+
$payload = [
2929
"data" => [
3030
"name" => "ZiHang Gao",
3131
"admin" => true
3232
],
3333
"iss" => "http://example.org",
3434
"sub" => "1234567890",
35-
);
35+
];
3636

3737
// default HS256 algorithm
3838
$token = jwt_encode($payload, $key);
@@ -350,4 +350,4 @@ ECDSA|ES256|ES384|ES512
350350
PHP License 3.01. See the [LICENSE](LICENSE) file.
351351

352352
[travis-url]: https://travis-ci.org/cdoco/php-jwt
353-
[travis-image]: https://travis-ci.org/cdoco/php-jwt.svg
353+
[travis-image]: https://travis-ci.org/cdoco/php-jwt.svg

0 commit comments

Comments
 (0)