From 72a6e1160ab96c12888333d89e35059233cb9eb0 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Thu, 10 Nov 2022 11:45:00 +0300 Subject: [PATCH] add throws for constructors --- src/CPAttribute.php | 3 +++ src/CPHashedData.php | 3 +-- src/CPSignedData.php | 4 +++- src/CPSigner.php | 4 +++- src/CPStore.php | 6 ++++++ 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/CPAttribute.php b/src/CPAttribute.php index 8feded6..eddefcf 100644 --- a/src/CPAttribute.php +++ b/src/CPAttribute.php @@ -13,6 +13,9 @@ */ class CPAttribute { + /** + * @throws \Throwable + */ public function __construct() { } diff --git a/src/CPHashedData.php b/src/CPHashedData.php index 058210d..9d9f147 100644 --- a/src/CPHashedData.php +++ b/src/CPHashedData.php @@ -16,9 +16,8 @@ */ class CPHashedData { - /** - * + * @throws \Throwable */ public function __construct() { diff --git a/src/CPSignedData.php b/src/CPSignedData.php index 4c33e3d..d52cf72 100644 --- a/src/CPSignedData.php +++ b/src/CPSignedData.php @@ -11,7 +11,9 @@ */ class CPSignedData { - + /** + * @throws \Throwable + */ public function __construct() { } diff --git a/src/CPSigner.php b/src/CPSigner.php index b80f928..b64f15a 100644 --- a/src/CPSigner.php +++ b/src/CPSigner.php @@ -29,7 +29,9 @@ */ class CPSigner { - + /** + * @throws \Throwable + */ public function __construct() { } diff --git a/src/CPStore.php b/src/CPStore.php index 459e1b9..edfe629 100644 --- a/src/CPStore.php +++ b/src/CPStore.php @@ -12,6 +12,12 @@ */ class CPStore { + /** + * @throws \Throwable + */ + public function __construct() + { + } /** * Добавляет сертификат в открытое хранилище.