Skip to content

Commit

Permalink
Fix typehind of Key::getKeyId()
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinmo committed Jan 15, 2024
1 parent 04ba8c5 commit dc92c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimpleJWT/Keys/Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private static function decrypt(string $data, string $password, string $alg) {
/**
* {@inheritdoc}
*/
public function getKeyId(bool $generate = false): string {
public function getKeyId(bool $generate = false): ?string {
if (!isset($this->data['kid']) && $generate) {
$this->data['kid'] = substr($this->getThumbnail(), 0, 7);
}
Expand Down

0 comments on commit dc92c99

Please sign in to comment.