firebase / php-jwt

PHP package for JWT
BSD 3-Clause "New" or "Revised" License
9.38k stars 1.27k forks source link

fix: Allow KID index '0' #505

Closed ajupazhamayil closed 1 year ago

ajupazhamayil commented 1 year ago

Fixes https://github.com/firebase/php-jwt/issues/504

ajupazhamayil commented 1 year ago

Note:

php > $nullValue = null;
php > $zero = '0';
php > $text = 'test';
php > print(!isset($nullValue) . PHP_EOL . !isset($zero) . PHP_EOL . !isset($text) . PHP_EOL);
1

php > print(empty($nullValue) . PHP_EOL . empty($zero) . PHP_EOL . empty($text) . PHP_EOL);
1
1