Skip to content

Commit d957f8e

Browse files
authored
chore: skip null checks when input is never null (#502)
1 parent 2bc0128 commit d957f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JWT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public static function jsonEncode(array $input): string
380380
}
381381
if ($errno = \json_last_error()) {
382382
self::handleJsonError($errno);
383-
} elseif ($json === 'null' && $input !== null) {
383+
} elseif ($json === 'null') {
384384
throw new DomainException('Null result with non-null input');
385385
}
386386
if ($json === false) {

0 commit comments

Comments
 (0)