From c47e29fc9f2e430fa06feeae65dbc0df05881de8 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Fri, 4 Nov 2022 17:02:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=89=D0=B0?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B0=D0=BB=D0=B3=D0=BE=D1=80=D0=B8=D1=82=D0=BC?= =?UTF-8?q?=20=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Certificate.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Certificate.php b/src/Certificate.php index 711d4ed..a73a280 100755 --- a/src/Certificate.php +++ b/src/Certificate.php @@ -102,7 +102,7 @@ class Certificate * возвращает информацию об алгоритме сертификата * * @throws \Exception - * @return AlgorithmInfoInterface + * @return array */ public function getAlgorithm() { @@ -110,10 +110,10 @@ class Certificate { $cadesPublicKey = $this->_cadesCertificate->PublicKey(); $cadesPublicKeyAlgorithm = $cadesPublicKey->get_Algorithm(); - $algorithmInfo = new class( - $cadesPublicKeyAlgorithm->get_FriendlyName(), - $cadesPublicKeyAlgorithm->get_Value()) extends AbstractAlgorithmInfo { - }; + $algorithmInfo = [ + 'algorithm' => $cadesPublicKeyAlgorithm->get_FriendlyName(), + 'oid' => $cadesPublicKeyAlgorithm->get_Value(), + ]; } catch (\Throwable $e) {