Skip to content

Commit

Permalink
Merge pull request #442 from nickdnk/master
Browse files Browse the repository at this point in the history
Fixed phphdocs for SignatureVerification exception
  • Loading branch information
brandur-stripe authored Feb 16, 2018
2 parents 10f8693 + f85fd8d commit 3210111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
3 changes: 2 additions & 1 deletion lib/WebhookSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3210111

Please sign in to comment.