From ddd66c4517525f0dd053fab13d3f7da56b469f24 Mon Sep 17 00:00:00 2001 From: Robert Boloc Date: Fri, 6 Sep 2019 14:46:50 +0100 Subject: [PATCH] Fix usage of SignatureVerification instead of SignatureVerificationException --- lib/Webhook.php | 2 +- lib/WebhookSignature.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Webhook.php b/lib/Webhook.php index 7f0fd510e..c5026ef5a 100644 --- a/lib/Webhook.php +++ b/lib/Webhook.php @@ -20,7 +20,7 @@ abstract class Webhook * timestamp and the current time * @return Event the Event instance * @throws Exception\UnexpectedValueException if the payload is not valid JSON, - * @throws Exception\SignatureVerification if the verification fails. + * @throws Exception\SignatureVerificationException 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 e43e2ec65..ccb42384f 100644 --- a/lib/WebhookSignature.php +++ b/lib/WebhookSignature.php @@ -8,7 +8,7 @@ abstract class WebhookSignature /** * Verifies the signature header sent by Stripe. Throws an - * Exception\SignatureVerification exception if the verification fails for + * Exception\SignatureVerificationException exception if the verification fails for * any reason. * * @param string $payload the payload sent by Stripe. @@ -17,7 +17,7 @@ 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 Exception\SignatureVerification if the verification fails. + * @throws Exception\SignatureVerificationException if the verification fails. * @return bool */ public static function verifyHeader($payload, $header, $secret, $tolerance = null)