From f85fd8de07de5cde021a3af36a078548f500c058 Mon Sep 17 00:00:00 2001 From: Nicolai Cornelis Date: Fri, 16 Feb 2018 21:48:21 +0100 Subject: [PATCH] Fixed phphdocs for SignatureVerification exception --- lib/Webhook.php | 2 +- lib/WebhookSignature.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Webhook.php b/lib/Webhook.php index 63a7b24ce..e0ab3021a 100644 --- a/lib/Webhook.php +++ b/lib/Webhook.php @@ -20,7 +20,7 @@ abstract class Webhook * timestamp and the current time * @return \Stripe\Event the Event instance * @throws \UnexpectedValueException if the payload is not valid JSON, - * \Stripe\SignatureVerification if the verification fails. + * @throws \Stripe\Error\SignatureVerification if the verification fails. */ public static function constructEvent($payload, $sigHeader, $secret, $tolerance = self::DEFAULT_TOLERANCE) { diff --git a/lib/WebhookSignature.php b/lib/WebhookSignature.php index 812388bc6..73e70dbd7 100644 --- a/lib/WebhookSignature.php +++ b/lib/WebhookSignature.php @@ -17,7 +17,8 @@ abstract class WebhookSignature * @param string $secret secret used to generate the signature. * @param int $tolerance maximum difference allowed between the header's * timestamp and the current time - * @throws SignatureVerification if the verification fails. + * @throws \Stripe\Error\SignatureVerification if the verification fails. + * @return bool */ public static function verifyHeader($payload, $header, $secret, $tolerance = null) {