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) {