File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 35
35
- name : Setup PHP
36
36
uses : shivammathur/setup-php@v2
37
37
with :
38
- php-version : " 8.2 "
38
+ php-version : " 8.3 "
39
39
- name : Run Script
40
40
run : |
41
41
composer global require friendsofphp/php-cs-fixer
49
49
- name : Install PHP
50
50
uses : shivammathur/setup-php@v2
51
51
with :
52
- php-version : ' 8.2 '
52
+ php-version : ' 8.3 '
53
53
- name : Run Script
54
54
run : |
55
55
composer install
56
- composer global require phpstan/phpstan
56
+ composer global require phpstan/phpstan:~1.10.0
57
57
~/.composer/vendor/bin/phpstan analyse
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ public static function encode(
204
204
?array $ head = null
205
205
): string {
206
206
$ header = ['typ ' => 'JWT ' ];
207
- if (isset ($ head ) && \is_array ( $ head ) ) {
207
+ if (isset ($ head )) {
208
208
$ header = \array_merge ($ header , $ head );
209
209
}
210
210
$ header ['alg ' ] = $ alg ;
@@ -387,12 +387,7 @@ public static function jsonDecode(string $input)
387
387
*/
388
388
public static function jsonEncode (array $ input ): string
389
389
{
390
- if (PHP_VERSION_ID >= 50400 ) {
391
- $ json = \json_encode ($ input , \JSON_UNESCAPED_SLASHES );
392
- } else {
393
- // PHP 5.3 only
394
- $ json = \json_encode ($ input );
395
- }
390
+ $ json = \json_encode ($ input , \JSON_UNESCAPED_SLASHES );
396
391
if ($ errno = \json_last_error ()) {
397
392
self ::handleJsonError ($ errno );
398
393
} elseif ($ json === 'null ' ) {
You can’t perform that action at this time.
0 commit comments