From 768fd3c0505fad201e218a8c8c368ade214a261d Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 3 Nov 2022 17:59:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B4=D0=BE=D0=BA=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CryptoPro.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/CryptoPro.php b/src/CryptoPro.php index 593ac55..a4f8d13 100755 --- a/src/CryptoPro.php +++ b/src/CryptoPro.php @@ -349,7 +349,6 @@ class CryptoPro $cadesSigner->set_Certificate($cadesCertificate); - /** @var \CPAttributes $cadesAuthAttrs */ $cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes(); $cadesAuthAttrs->Add($cadesAttrs); @@ -443,7 +442,6 @@ class CryptoPro $cadesSigner->set_Certificate($cadesCertificate); - /** @var \CPAttributes $cadesAuthAttrs */ $cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes(); $cadesAuthAttrs->Add($cadesAttrs); @@ -526,7 +524,6 @@ class CryptoPro $cadesSigner->set_Certificate($cadesCertificate); - /** @var \CPAttributes $cadesAuthAttrs */ $cadesAuthAttrs = $cadesSigner->get_AuthenticatedAttributes(); $cadesAuthAttrs->Add($cadesAttrs); @@ -580,7 +577,8 @@ class CryptoPro * * @param string $unencryptedMessage сообщение для хеширования * - * @return void + * @throws \Exception + * @return string */ public static function createHash(string $unencryptedMessage) { @@ -608,7 +606,6 @@ class CryptoPro try { - /** @var string $hash */ $hash = $cadesHashedData->get_Value(); } catch (\Throwable $e)