Skip to content

Commit

Permalink
Update LWT.php
Browse files Browse the repository at this point in the history
  • Loading branch information
localzet committed Nov 16, 2023
1 parent 4c83acd commit a355b7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LWT.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ final class LWT
protected static string $ALGORITHM = 'ES512';

/**
* Ключ подписи в формате PEM (ECDSA)
* Ключ подписи в формате PEM
*
* Используется для создания/проверки цифровой подписи токена.
*
Expand Down Expand Up @@ -627,8 +627,8 @@ protected static function generateHmacKeyFromSignKey(): string

$key = self::$SIGN_KEY;

$public = openssl_pkey_get_public($key);
$private = openssl_pkey_get_private($key);
$public = @openssl_pkey_get_public($key);
$private = @openssl_pkey_get_private($key);

if (!$public && !$private) {
return $key;
Expand Down

0 comments on commit a355b7b

Please sign in to comment.